Hi there, I have one problem... We have to execute external Java process from JAR archive included in our web application directory. The problem is, that all system dependant functions are relative to tomcat home directory. And - when our application is deployed outside tomcat directory via server.xml context definition - we cannot find a way to get path to our web directory...
I am not sure if I am expressing myself clear, so example... I have web app with structure: someDir/web: WEB-INF META-INF dirWithArchive externalProgram.jar ... which is deployed OUTSIDE tomcat. I need to execute such code: Process = new ProcessBuilder("java -jar some/path/to/someDir/web/dirWithArchive/externalProgram.jar".split("\\s+").start(); from within struts action or struts plugin. HOW can I find a path without specifying it manualy (it's problematic because of different environments we deploy our application to). TIA Wojciech Ciesielski Software Mind | Where Quality Meets the Future mailto:[EMAIL PROTECTED] tel./fax: +48-12 6145170 http://www.softwaremind.pl