C
cyber sana
Dear Experts,
One week ago i ask about this and still cannot find the solution.
Problem:
In tomcat application, PrintServiceLookup cannot return any existing
printer:
PrintService[] pservices =
PrintServiceLookup.lookupPrintServices(null, null);
But when I use this statement in a single .java to run & test
independently, it can find all my printer service.
I print out java version in tomcat
Java home: /root/j2sdk1.4.2_19/jre
Java vesion: 1.4.2_19
They are the same as the one I singlely compile .java source.
Can anyone give me hint why i cannot detect any printer in Centos
tomcat 4.0.3 ?
By the way, I build the class file first in windows (using same java
version, and can detect printers in windows tomcat) and move the class
to centos tomcat. Is it related ?
Thanks.
One week ago i ask about this and still cannot find the solution.
Problem:
In tomcat application, PrintServiceLookup cannot return any existing
printer:
PrintService[] pservices =
PrintServiceLookup.lookupPrintServices(null, null);
But when I use this statement in a single .java to run & test
independently, it can find all my printer service.
I print out java version in tomcat
Java home: /root/j2sdk1.4.2_19/jre
Java vesion: 1.4.2_19
They are the same as the one I singlely compile .java source.
Can anyone give me hint why i cannot detect any printer in Centos
tomcat 4.0.3 ?
By the way, I build the class file first in windows (using same java
version, and can detect printers in windows tomcat) and move the class
to centos tomcat. Is it related ?
Thanks.