From owner-freebsd-java@FreeBSD.ORG Tue Oct 13 11:14:13 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4316F1065692 for ; Tue, 13 Oct 2009 11:14:13 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from dd12710.kasserver.com (dd12710.kasserver.com [85.13.134.233]) by mx1.freebsd.org (Postfix) with ESMTP id 039578FC13 for ; Tue, 13 Oct 2009 11:14:12 +0000 (UTC) Received: from current.Sisis.de (cazador.sisis.de [193.31.11.193]) by dd12710.kasserver.com (Postfix) with ESMTP id C1E42183CBD35; Tue, 13 Oct 2009 12:56:12 +0200 (CEST) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id n9DAuAue003176; Tue, 13 Oct 2009 12:56:10 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Tue, 13 Oct 2009 12:56:10 +0200 From: Matthias Apitz To: freebsd-java@freebsd.org, freebsd-questions@freebsd.org Message-ID: <20091013105610.GA3106@current.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) Cc: Subject: error while printing from Java to CUPS X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2009 11:14:13 -0000 Hello, Some Java applications, like openproj for example, are unable to print to the CUPS printing system; this seems to be a know problem in Java and if you do a search in Don Google you will information and workarounds, like this, for example: http://www.magicdraw.com/main.php?ts=faq&cmd_show=1&menu=faq Diagram printing is not working on Linux OS The problem is related with the Linux cups package update. This problem is Sun Java bug and description of this problem is published in the Java Bug Database: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6633656. To solve diagram printing problem we would suggest to use 1.6.0_10 JVM or later, because this issue is solved in these java versions. If you can not use the 1.6.0_10 JVM or later, other possible solution would be the following: 1.Open the file /etc/cups/printers.conf 2.Before each line with the text , add the following line: Options orientation-requested 3 The referenced http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6633656 explain all the details of the bug... But: I've tried to insert the proposed change in /usr/local/etc/cups/printers.conf but it does not help. This is with cups-base-1.3.9_3 in a 8-CURRENT. As well it says that there is a fix in Java in 1.6.0_10 or later... I have dk-1.6.0.3p4_10 and it seems no to be fixed :-( Any ideas? matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu