|
From: Hubert F. <Hub...@ab...> - 2010-07-01 06:18:05
|
Hey Alan, Are you using windows? The printers are probabely installed for a certain user. Running your app in console means, that you use that users settings. Running as service probabely means that it runs with LocalSystem account, which does not have any printers assigned. You 'll have to run the service with a user a account that has the printer installed. Hubert >>> Alan Xu <ala...@gm...> 01.07.2010 08:11 >>> Hi, Guys I am using *PrinterJob.lookupPrintServices()* to get printer services in my java application. It works fine in console, but when I wrapped it to Java Service Wrapper, I get nothing. Anyone can help me out or give some suggestions. Thank you very much! Alan |