LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Java and CUPS (https://www.linuxquestions.org/questions/linux-software-2/java-and-cups-94965/)

tstx1 09-20-2003 07:15 PM

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

contrasutra 09-20-2003 09:15 PM

hmmm...CUPS uses the "lpr" printing scheme. Make sure that whatever program you use is printing to "lpr".

tstx1 09-21-2003 03:23 PM

Quote:

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.

BFN,

Torsten

ru11617 09-25-2003 04:46 AM

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

tstx1 09-25-2003 10:16 AM

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,


Roberto


paolo.bellucci 09-26-2003 07:41 AM

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.