Date: Wed, 7 Apr 2004 14:18:57 +0200 From: Dominik Epple <epple@tphys.physik.uni-tuebingen.de> To: ports@freebsd.org Subject: Java and printing: No print service found. Message-ID: <20040407121857.GA2487@axion01.tphys.physik.uni-tuebingen.de>
next in thread | raw e-mail | index | archive | help
[ 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. --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040407121857.GA2487>