View previous topic :: View next topic |
Author |
Message |
fbreuer n00b
Joined: 04 Oct 2002 Posts: 47 Location: Berlin, Germany
|
Posted: Tue Jul 01, 2003 1:24 pm Post subject: Printing from Java |
|
|
In a number of Java applications (e.g. Apache's Batik) I get a message saying "printing service not found" when I try to print a document. How can I set up a printing service for use with Java? I would be content if I could print to a file/generate a postscript file. Any ideas where I should start looking...?
Thanks, Felix |
|
Back to top |
|
|
phelan Tux's lil' helper
Joined: 22 Aug 2002 Posts: 110 Location: Zürich, Switzerland
|
Posted: Tue Jul 01, 2003 4:36 pm Post subject: |
|
|
What Java version do you run?
What version have the applications been developed for?
I'm asking because printing works fine without any configuration from a self developed app running with JRE 1.4.1 |
|
Back to top |
|
|
fbreuer n00b
Joined: 04 Oct 2002 Posts: 47 Location: Berlin, Germany
|
Posted: Tue Jul 01, 2003 5:13 pm Post subject: |
|
|
I am using version 1.4.0. Batik's webpage states JDK 1.3 as a requirement. Do you think that this is an application specific problem? jEdit produces the same error and mentions JDK 1.4 as recommended platform.
I will try a binary installation of JDK 1.4.1 and see what happens... |
|
Back to top |
|
|
zhenlin Veteran
Joined: 09 Nov 2002 Posts: 1361
|
Posted: Wed Jul 02, 2003 8:59 am Post subject: |
|
|
Probably need to configure something. Installing binaries won't help. |
|
Back to top |
|
|
MIT_Service Guru
Joined: 29 Nov 2002 Posts: 355
|
Posted: Wed Jul 02, 2003 12:08 pm Post subject: |
|
|
I can print without any problems. I got a working CUPS installation and I'm using sun-jdk-1.4.1. However printing Landscape seems to be broken with the Linux SDK in this version. Everything else works well.
Can you print from non java apps? |
|
Back to top |
|
|
zhenlin Veteran
Joined: 09 Nov 2002 Posts: 1361
|
Posted: Wed Jul 02, 2003 3:19 pm Post subject: |
|
|
Landscape just won't work for me... It always prints it without rotating 90. In any program... |
|
Back to top |
|
|
MIT_Service Guru
Joined: 29 Nov 2002 Posts: 355
|
Posted: Wed Jul 02, 2003 6:10 pm Post subject: |
|
|
If I try to print landscape I get some weird Image Transformation Exception (something like that) somewhere deep inside the java classes - cant pin that one down so I guess it's an sdk/vm problem. |
|
Back to top |
|
|
fbreuer n00b
Joined: 04 Oct 2002 Posts: 47 Location: Berlin, Germany
|
Posted: Wed Jul 02, 2003 8:20 pm Post subject: |
|
|
MIT_Service: I do not have a CUPS installation due to the fact that there is no printer conncted to my machine. I can, however print to PostScript files from most applications (Mozilla, Evolution, gEdit, TeXmacs,...)
Does this mean, that I have to have a printer to be able to use java to print to a file? Or do I just have to have a printing service running? How do I configure CUPS to work as some kind of dummy printing service? |
|
Back to top |
|
|
MIT_Service Guru
Joined: 29 Nov 2002 Posts: 355
|
Posted: Thu Jul 03, 2003 6:40 am Post subject: |
|
|
Java printing should work without cups. However some printing service should be installed.
You might try installing cups and see if it works out http://www.gentoo.org/doc/en/printing-howto.xml
If not I guess the best try is to look at suns official support and bugreport forums. |
|
Back to top |
|
|
alanokeefe n00b
Joined: 29 Nov 2005 Posts: 7
|
Posted: Sun Dec 03, 2006 9:01 am Post subject: Re: Printing from Java |
|
|
Hi all
I have the same problem with my Sun JDK 1.5, however, if I manually over-ride the JVM and use the Blackdown 1.4.2 jre installed, it works, so it's probably an installation problem with the Sun Java install.
Anyone know anywhere that you can configure the print service in Sun JDK 1.5 ? (I looked in the ControlPanel application, no joy).
Thanks and regards
Alan
fbreuer wrote: | In a number of Java applications (e.g. Apache's Batik) I get a message saying "printing service not found" when I try to print a document. How can I set up a printing service for use with Java? I would be content if I could print to a file/generate a postscript file. Any ideas where I should start looking...?
Thanks, Felix |
|
|
Back to top |
|
|
roki942 Apprentice
Joined: 18 Apr 2005 Posts: 285 Location: Seattle
|
Posted: Mon Dec 25, 2006 1:29 pm Post subject: |
|
|
I've also run into this problem ... finally found this in buzilla.
https://bugs.gentoo.org/show_bug.cgi?id=157126
Going to try it tomorrow when I get back ... hope it doesn't mess up printing in non-java pgms |
|
Back to top |
|
|
roki942 Apprentice
Joined: 18 Apr 2005 Posts: 285 Location: Seattle
|
Posted: Mon Dec 25, 2006 9:56 pm Post subject: |
|
|
/usr/lib/libcups.so links to /usr/lib/libcups.so.2 ... fix works for me . (btw, had earlier tried upgradind to ~x86 sun-jdk and ran into the same problem)
Merry Xmass |
|
Back to top |
|
|
|