Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Printing from Java
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
fbreuer
n00b
n00b


Joined: 04 Oct 2002
Posts: 47
Location: Berlin, Germany

PostPosted: Tue Jul 01, 2003 1:24 pm    Post subject: Printing from Java Reply with quote

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
View user's profile Send private message
phelan
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2002
Posts: 110
Location: Zürich, Switzerland

PostPosted: Tue Jul 01, 2003 4:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
fbreuer
n00b
n00b


Joined: 04 Oct 2002
Posts: 47
Location: Berlin, Germany

PostPosted: Tue Jul 01, 2003 5:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Wed Jul 02, 2003 8:59 am    Post subject: Reply with quote

Probably need to configure something. Installing binaries won't help.
Back to top
View user's profile Send private message
MIT_Service
Guru
Guru


Joined: 29 Nov 2002
Posts: 355

PostPosted: Wed Jul 02, 2003 12:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Wed Jul 02, 2003 3:19 pm    Post subject: Reply with quote

Landscape just won't work for me... It always prints it without rotating 90. In any program...
Back to top
View user's profile Send private message
MIT_Service
Guru
Guru


Joined: 29 Nov 2002
Posts: 355

PostPosted: Wed Jul 02, 2003 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
fbreuer
n00b
n00b


Joined: 04 Oct 2002
Posts: 47
Location: Berlin, Germany

PostPosted: Wed Jul 02, 2003 8:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
MIT_Service
Guru
Guru


Joined: 29 Nov 2002
Posts: 355

PostPosted: Thu Jul 03, 2003 6:40 am    Post subject: Reply with quote

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
View user's profile Send private message
alanokeefe
n00b
n00b


Joined: 29 Nov 2005
Posts: 7

PostPosted: Sun Dec 03, 2006 9:01 am    Post subject: Re: Printing from Java Reply with quote

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
View user's profile Send private message
roki942
Apprentice
Apprentice


Joined: 18 Apr 2005
Posts: 285
Location: Seattle

PostPosted: Mon Dec 25, 2006 1:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
roki942
Apprentice
Apprentice


Joined: 18 Apr 2005
Posts: 285
Location: Seattle

PostPosted: Mon Dec 25, 2006 9:56 pm    Post subject: Reply with quote

n00bsRus wrote:
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


/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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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