Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I discovered a problem with Java and CUPS, but I'm not sure which one doesn't work correctly, the JRE, CUPS or myself.
Anyway, I've the CUPS server running on my local machine and configured one printer which just works fine. Software that's explicitly CUPS enabled recognizes the printer and printing is OK. But every Java application that I've tried (my own apps as well as other applications like JEdit etc., using Suns J2SDK 1.4.2) displays the printer's status as "Not accepting jobs" and the properties button is disabled in the Java printing dialog. Printing by pressing the print button works however.
Is this a known problem or a configuration issue ?
Originally posted by contrasutra hmmm...CUPS uses the "lpr" printing scheme. Make sure that whatever program you use is printing to "lpr".
Sure, but I don't understand why all Java apps report that the printer is "Not accepting jobs" whereas all other applications report it as being idle and accepting jobs. lpstat also says that it is accepting requests (and that's what it acutally does, printing works fine in all cases including Java apps). I'll do some more thorough tests with my own Java applications the next days to see what's up. Most of my Java apps are server based and don't perform any printing and in those rare cases I had to implement any printing stuff in Java it was used on Windows.
Hi,I do have the same problem! I tried with both a local printer and a network printer with the same result...... nothing is printed!
I tried also to print to a file instead the printer and it's OK. I mean that I found the output on a file in my h/d.
Can someone help us?
Thanks in advance,
Does printing definitely work with your non-Java applications ? If it does it also should with Java. My problem is just that the Java printing system just doesn't return the correct status of the printer. Printing itself works fine.
Quote:
Originally posted by ru11617 Hi,I do have the same problem! I tried with both a local printer and a network printer with the same result...... nothing is printed!
I tried also to print to a file instead the printer and it's OK. I mean that I found the output on a file in my h/d.
Can someone help us?
Thanks in advance,
Hi, I have the same problem as Roberto.. it's about jre & cups in RH9.
Cups itself works ok, ..also java works good, with some exceptions.
The main problem with java is that java apps do not send anything to Cups.. there is no printing job in any queue of any printer installed.
I tried different jre versions, even an IBM jre that seems to be required to get
IBM host on demand working with mozilla.
The same goes with java SAP client.. it doesn't print at all and I can't find no info about how to tell java what printing subsytem to use nor what line command to execute.
Thanx in advance.
Does anyone have an advice or have the same problem??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.