[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Not identify network printer when JBoss start as windows

harshi do-not-reply at jboss.com
Thu Sep 27 23:17:37 EDT 2007

Thanks Peter.
Actually the Service running under the system account. I have set up an account for the service. this account has administrative priviledges. now the application identifies the printer. since i have created a bat file and execute now it doesn't print because the user account doesnot have priviledges to the killing of the process.

please find the code attached 

FileWriter fw =new FileWriter(PDFPath+"printPDF.bat");		
PrintWriter out = new PrintWriter(fw);			
out.println("taskkill/IM AcroRd32.exe /t");
out.println("CALL START /MIN AcroRd32.exe /h /p "+PDFPath+filename);
String batPath = PDFPath + "printPDF.bat";
tr = Runtime.getRuntime();
Process p = tr.exec(batPath);

any ideas.

Thanks in adavance

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089540#4089540

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089540

More information about the jboss-user mailing list