#1  
Old 12th April 2009, 01:43
anw anw is offline
Member
 
Join Date: Feb 2007
Posts: 53
Thanks: 0
Thanked 6 Times in 6 Posts
Default Java Printing Problems

Well, I've had a terrible time getting my printer working after I upgraded my system to all the latest & greatest. Some details of the travail are here. While most of that is behind me, I still have one significant problem: I have Moneydance, a java app, that can't print. Since this is how all my bills are paid (and checks written), this is a major problem, but is (I think) a generic java printing problem.

I have tried from version Java-1.4 to Java-6 from Sun, java-6 from IBM (I heard IBM's printing was much more robust), can't download anything before java-6 from IBM (they seem to be having a server problem), openjdk-6, and The GNU Compiler Collection (gcj 4.3), all of them either do absolutely nothing, pop up a dialog that says something like java.xxx.awt PrinterIOException, or pop up a dialog that says "No printer service found".

I have also looked all over the web for this, and, except for a solution involving "mv /usr/lib/cups" and using different java runtimes, can't find a solution.

Does anyone have any insight into how to fix this, or a java package that prints?

TIA
Reply With Quote
Sponsored Links
  #2  
Old 14th April 2009, 00:53
anw anw is offline
Member
 
Join Date: Feb 2007
Posts: 53
Thanks: 0
Thanked 6 Times in 6 Posts
Default

I have found something out. Evidently, java uses lpr to print, which is unnecessary in most (all?) other systems. I was printing fine except for java, then found a java program (jedit) that printed out more info regarding its exception, and the problem was not finding lpr.

Now, when using lpr, it wants to use a ghostscript line like this:
Quote:
gs -sstdout=%stderr -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -r300x300 -sDEVICE=cdj550 -dBitsPerPixel=3 -sOutputFile=%stdout -_
This is not the gs line that appears in the G85.ppd in /etc/cups/ppd/G85.ppd, which is:
Quote:
*FoomaticRIPCommandLine: "gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -r300x300 -sDEVICE=cdj550%A%Z -sOutputFile=- -"
*End
Notice one difference: the first (which doesn't work) has "-dBitsPerPixel", which is absent in the second. If I "print to file", then pipe the file through the first one, I get an error which says "rangecheck in .putdeviceprops". If I remove the "-dBitsPerPixel", then do the same thing, it prints.

So, now the question is, where does lpr get its gs command line so I can change it? Anyone out there have a clue?

TIA-
Reply With Quote
  #3  
Old 16th April 2009, 03:07
anw anw is offline
Member
 
Join Date: Feb 2007
Posts: 53
Thanks: 0
Thanked 6 Times in 6 Posts
 
Default

I found the problem. Somehow, in the midst of all the upgrading, I lost the BSD print stuff (lpr, etc.). I discovered this, then reinstalled lpr, which didn't work. I should have reinstalled "cups-bsd", which has BSD print interface to CUPS.
Reply With Quote
The Following User Says Thank You to anw For This Useful Post:
falko (16th April 2009)
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with groups/grpconv linuxfast General 28 21st April 2008 09:35
Management/system config/settings & /server/settings not working!! dactor Installation/Configuration 9 6th February 2008 09:11
PHP - Java Compile ToysunStory Installation/Configuration 9 4th January 2008 18:47
java runtime enviroment gabrix Suggest HOWTO 0 21st January 2007 02:51
Empty Recycle Bin jon335 General 40 6th May 2006 11:56


All times are GMT +2. The time now is 14:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.