Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Windows Serive Permissions?

Karl Coleman

2003-12-01


I have a command-line utility I am running that converts files into PDF. Here is the line we're using to run the program:

Process proc = Runtime.getRuntime().exec("cmd.exe /c C:\\BatchPDF.exe "+rtfFile.getAbsolutePath()+" "+pdfFile.getAbsolutePath());

The problem is, it only runs if Tomcat was started from the startup.bat file. If Tomcat is running as a service, which is how we want it, it does not run. We set up Tomcat to run under administrator with no luck. We are guessing this is a file permissions problem, either from running it as a Windows service or with Tomcat itself. Any ideas would be appreciated.

Thanks,
Karl
©2008 junlu.com - Jax Systems, LLC, U.S.A.