Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

calling an EXE file stored in Tomcat/webapps from JSP

843838Jan 29 2006
Sir,

I want to call eclipse.exe file which is stored in Tomcat/webapps/hari/eclipse.exe from jsp.

my code is

<%

Runtime r = Runtime.getRuntime();
Process p = null;
try
{
p = r.exec("d:/tomcat/webapps/hari/eclipse.exe");
}
catch(Exception e)
{
e.printStackTrace();
}

%>

it is not calling that exe file and no error msg too.

I am able to call this exe file when it is in my localdrive instead of in Tomcat/webapps with this same code with the change of path.
What is the error i committed?


Thankyou
Harikrishnan J.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2006
Added on Jan 29 2006
0 comments
106 views