LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-20-2003, 07:15 PM   #1
tstx1
LQ Newbie
 
Registered: Sep 2003
Posts: 6

Rep: Reputation: 0
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

Last edited by tstx1; 09-20-2003 at 07:16 PM.
 
Old 09-20-2003, 09:15 PM   #2
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
hmmm...CUPS uses the "lpr" printing scheme. Make sure that whatever program you use is printing to "lpr".
 
Old 09-21-2003, 03:23 PM   #3
tstx1
LQ Newbie
 
Registered: Sep 2003
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 09-25-2003, 04:46 AM   #4
ru11617
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
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

Last edited by ru11617; 09-25-2003 at 04:50 AM.
 
Old 09-25-2003, 10:16 AM   #5
tstx1
LQ Newbie
 
Registered: Sep 2003
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 09-26-2003, 07:41 AM   #6
paolo.bellucci
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
Unhappy

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??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slack 10.2 / Java 1.5 / CUPS printing rhb327 Slackware 5 04-18-2006 03:36 AM
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 08:01 AM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM
Java and cups arubin Programming 0 07-07-2004 01:49 PM
Slackware 9 and CUPS (CUPS=crap) - printing carboncopy Slackware 21 07-29-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration