Java and CUPS
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 ? Thanks, Torsten |
hmmm...CUPS uses the "lpr" printing scheme. Make sure that whatever program you use is printing to "lpr".
|
Quote:
BFN, Torsten |
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, Roberto |
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:
|
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?? |
All times are GMT -5. The time now is 06:25 AM. |