Hello all,
I am having a problem using exec() to call cmd.exe for running an application! For some reason if Tomcat is started as a system service in windows it will not launch the command prompt, However, if I start tomcat through the /bin startup.bat the servlet has no problem launching cmd and the app I want to launch. I am using this command in my servlet! Any suggestions are appr.
Process proc = Runtime.getRuntime().exec("cmd.exe /C C:\\BatchPDF.exe "+rtfFile.getAbsolutePath()+" "+pdfFile.getAbsolutePath());
It is just calling the app BatchPDF to convert a .rtf file to a .pdf file!
Thank you in advance,
Lance
I am having a problem using exec() to call cmd.exe for running an application! For some reason if Tomcat is started as a system service in windows it will not launch the command prompt, However, if I start tomcat through the /bin startup.bat the servlet has no problem launching cmd and the app I want to launch. I am using this command in my servlet! Any suggestions are appr.
Process proc = Runtime.getRuntime().exec("cmd.exe /C C:\\BatchPDF.exe "+rtfFile.getAbsolutePath()+" "+pdfFile.getAbsolutePath());
It is just calling the app BatchPDF to convert a .rtf file to a .pdf file!
Thank you in advance,
Lance