Michel, I had a similar problem creating files in a servlet. I found that in my case, the relative path start in the directory where tomcat is started. I changed the startup script to do a cd to $tomcat_home then called bin/startup.sh.
Hope this helps Rick Bradberry NCR WCS Managed Services Telephone: 937-848-2203 Cell Phone: 937-367-1879 efax: 413-674-7094 -----Original Message----- From: Michel Jubault [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 9:45 AM To: [EMAIL PROTECTED] Subject: Running external C routine from a servlet ? Please help me !!!! Hi there ! I'm running a little C program from a servlet. I'm using runtime, process and exec to do this. I gather the result in an inputstream. In fact there's no pb on that. The problem is rather a path problem. All servlets in my app are using relative path to found the others and properties file ie the working directory is myapp/WEB-INF/classes. But for C program the default path is always the home path ie /root or /home/user. I must build the complete absolute path to launch my C routine. I don't understand why the default path isn't the classes path as for servlet. I'm running under linux Red HAT 7.3, java 1.4.1_02, Tomcat 4.1.24. Is there any config file to modify in tomcat, linux or java? Please help ! Many thanks in advance ! Michel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
