calling an EXE file stored in Tomcat/webapps from JSP
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.