Java Mailing List Archive

http://www.junlu.com/

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

Runtime.exec security issue?

andy wix

2004-11-29


Hi,

I am trying to run a simple exec command to open notepad with code as
follows:

Runtime runtime = Runtime.getRuntime();
Process proc = runtime.exec("C:\\WINDOWS\\system32\\notepad.exe");

This code works fine from a stand-alone program but not run under Tomcat.

I CAN successfully set the the system time and date using the same approach
though.

I get the same results when Tomcat is not run as a service.

I am running Xp with Tomcat 5.0.27.

I thought this might be a java permissions issue, but I don't get any
exceptions thrown - just nothing happens.

Thanks,
Andy

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends
http://www.msn.co.uk/messenger


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

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