I have a servlet running in tomcat6. I use the following code to execute a command in ubuntu Runtime.getRuntime().exec("/usr/bin/wine cmd /c some.vbs"); the problem is tomcat6 runs the programme as "tomcat6" user, the above java command. So the the above commands getErrorStream returns as "wine: /home/randeel/.wine is not owned by you" I have installed "wine" using user "randeel". Is there a workaround for this?
Thank you, Rana.