From owner-freebsd-ports@FreeBSD.ORG Wed Apr 7 05:20:48 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EC8316A4CE for ; Wed, 7 Apr 2004 05:20:48 -0700 (PDT) Received: from pion19.tphys.physik.uni-tuebingen.de (pion19.tphys.physik.uni-tuebingen.de [134.2.78.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B86243D41 for ; Wed, 7 Apr 2004 05:20:47 -0700 (PDT) (envelope-from epple@tphys.physik.uni-tuebingen.de) Received: from axion01.tphys.physik.uni-tuebingen.de (axion01.tphys.physik.uni-tuebingen.de [134.2.78.148]) id i37CIxe8011708 for ; Wed, 7 Apr 2004 14:18:59 +0200 Received: from axion01.tphys.physik.uni-tuebingen.de (localhost [127.0.0.1]) 0.7) with ESMTP id i37CIvVE002492 for ; Wed, 7 Apr 2004 14:18:57 +0200 Received: (from epple@localhost)i37CIvBG002491 for ports@freebsd.org; Wed, 7 Apr 2004 14:18:57 +0200 Date: Wed, 7 Apr 2004 14:18:57 +0200 From: Dominik Epple To: ports@freebsd.org Message-ID: <20040407121857.GA2487@axion01.tphys.physik.uni-tuebingen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Java and printing: No print service found. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2004 12:20:48 -0000 [ This message has been sent to freebsd-questions and I got no answers, so I retry it here. ] Hi, I have a box with FreeBSD-5.2.1-RELEASE, system and ports rebuilt from cvsuped sources around Feb 28. There is also installed the native jdk-1.4.2, patchset 6. As printing system, cups-1.1.20 is installed and working, i.e. printing via lpr is possible and lpq and stuff. A self-written, existing Java application is now to be run on this machine. This application uses the Java print api and printing works, for example, when running this application under linux. However, on the FreeBSD box, trying to print gives just a Message Box with the text "No print service found.". This Problem can be reproduced with this tiny Java program: === DummyPrinter.java import java.awt.print.PrinterJob; class DummyPrinter { public static void main(String[] args) { PrinterJob printJob=PrinterJob.getPrinterJob(); printJob.printDialog(); System.exit(0); } } === Compiling and running this program just pops up the Message Box with this "No print service found." text. This behavior is also present when using linux-sun-jdk1.4.2. How can I fix this problem? It would already be great to somehow make the system just go on to display the dialog even without being able to print to the printer, but to setup printing to print into a file. Regards, Dominik. --