Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Java and printing: No print service found.

 
   FreeBSD Hosting (Home) -> FreeBSD Ports RSS
Next:  enabling vulnerability checking  
Author Message
Dominik Epple

External


Since: Apr 07, 2004
Posts: 1



(Msg. 1) Posted: Wed Apr 07, 2004 8:21 pm
Post subject: Java and printing: No print service found.
Archived from groups: mailing>freebsd>ports (more info?)

[ 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.
--
_______________________________________________
freebsd-ports.DeleteThis@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"

 >> Stay informed about: Java and printing: No print service found. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
java/eclipse java/jdk16 IPV6 problems - I'm running eclipse with jdk16. If I build the jdk with IPV6 support the Eclipse JUnit-Plugin doesn't work and the Debugger complains about not being able to connect to a socket. I forgot to copy the exact message, before I rebuilt without IPV6. It..

printing from acroread 7 - What magic is needed to print from acroread 7? It just dies when I try to print from it. Thanks! _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe...

print/pdftk: Lonely orphan port needs attention (print/pdf.. - pdftk was a handy utility for splitting and combining bits of .pdfs. Given a list of .pdfs it could extract page ranges of input .pdfs and combine them to produce a new .pdf. Breakage may have been inevitable since pdftk is so old and unmaintained......

question about port of chat service - hi How open chat's port service in unix platform and what is chat's port number? thanks a lot. --------------------------------- Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone...

rge.com mirror service ending - After 15 years of providing mirrors of popular software packages and other interesting topics of information, the Rochester Gas and Electric Company is discontinuing its Internet mirror archive. As such, please remove any/all of the following from your....
   FreeBSD Hosting (Home) -> FreeBSD Ports All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]