PDA

View Full Version : Printing using Java on Linux with Network Windows Printer, produce "No Spool File"



ali irawan
October 6th, 2009, 01:06 PM
I have a case that printing using Java API.
I build a simple application in Java, and deploy it on Tomcat (Linux)

When I test to print, with the specified PrintService
the print is attached to Windows computer
and has been recognized by linux

I do query the Print Service using java method.

PrinterJob.lookupPrintServices()

and get the print Service. then start to Print.
but it failed, and produce error "No Spool File"

then I test on Windows, using Tomcat too.
And it can print correctly without any errors.

Anyone can help what should I do ?

ali irawan
October 13th, 2009, 09:14 AM
Anyone could help me?
What should I do with the exception message "No Spool File"