What is Problem in Runtime.getruntime which does not open notepad.exe

Posted by magh on Stack Overflow See other posts from Stack Overflow or by magh
Published on 2010-05-12T02:07:20Z Indexed on 2010/05/12 2:14 UTC
Read the original article Hit count: 263

Filed under:
|
|
|

when try to execute the servlet containing following code

Runtime rt = Runtime.getRuntime(); Process p = rt.exec("notepad.exe");

It doesn't launch the application in the environment windows server 2003 and Tomcat 5 but a process is being created as notepad.exe in the windows task manager.

In windows xp and tomcat 6 environment launches the notepad

i need to work on the windows server 2003 and tomcat 5

Thanks in advance

© Stack Overflow or respective owner

Related posts about java

Related posts about j2ee