This is a discussion on Linux java apps: printing within the Linux software forums, part of the Linux Getting Started category; I am using Slackware linux v 10.2 (kernel 2.6) and, for printing I use CUPS. This is configured OK (no ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
I am using Slackware linux v 10.2 (kernel 2.6) and, for printing I use CUPS. This is configured OK (no problems printing) except for all Java apps; these give a "print service not found" error. Can anyone point me in the right direction on this (I already posted to the CUPS list but nobody could help). I obviously have a configuration problem somewhere, but where?
Thanks, Mike |
| Sponsored Links | ||
|
|
|
||||
|
print service not found - it means java app is not able to locate print service name - /etc/init.d/cups. You need to start service as follows:
/etc/init.d/cups start Unfortunately /etc/init.d/cups name can be different for Slack. I am using Red Hat workstation. Try to set symlink as /etc/init.d/cupsys to /etc/init.d/cups using ln -s command. Type command: Code:
ln -s /etc/init.d/cups /etc/init.d/cupsys
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
|
|||
|
Many thanks to tom, rockdalinux and monk for your helpful replies.Unfortunately, none of the ideas worked (I have the equivalent of the Debian cupsys-bsd, lpc is correctly installed, and cups is running).
However, by playing around I found that I could print if I installed the Sun j2sdk 1.4.2 in place of the more recent jdk 1.5.0. Checking bug reports on the Sun website showed that this problem has been described before and supposedly fixed (see http://bugs.sun.com/bugdatabase/index.jsp) (bug ID 5109523 is particularly relevant). Proposed workarounds included: 1. disabling authentification in CUPS, or 2. using Jipsi to allow specifying a username/password to select an IPP print service. Neither of these seems valid, particularly since Jipsi is no longer required by CUPS for discovering the print services. So I was left with the choice of using the old j2sdk 1.4.2 and being deprived of recent improvements (but being able to print) or forgetting about printing and using a recent Sun Java VM. By chance I found that IBM release a Java VM: I installed their latest version (IBM j2se 5.0) and it works just fine! The print services are discovered, the printers are listed, no problem printing, and I have the feeling that the apps themselves run faster. I will stick with IBM java VM,, but to satisfy my curiosity in this matter could you tell me which java versions you are/were using for successful printing? Thanks again, look forward to your replies, Mike |
|
||||
|
Hello,
Have you tried different Linux distros? I know JVM should work under any Linux distro but sometime things don't work under particular distro. I know one large hospital they run Red hat workstation and with IBM JVM and they had some printing problem too. Since it was large installation (more than 500+ RH workstation) RedHat provided them some sort of patches. Try switching distro; Few years back Blackdown JVM was quite hot http://www.blackdown.org/ |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| printing file in perl | chandanperl | Coding in General | 3 | 04-16-2008 11:03 AM |
| Cups is not printing text file with proper format, staircasing issue | Ashish Pathak | CentOS / RHEL / Fedora | 1 | 11-18-2007 08:12 AM |
| Looking Glass: Sun open source java desktop | Ashish Pathak | The Hangout | 1 | 01-05-2006 06:46 PM |
| Need help with printing arrary in Ksh | avcert1998 | Shell scripting | 4 | 08-18-2005 05:42 PM |