• Post Reply Bookmark Topic Watch Topic
  • New Topic

Running an exe  RSS feed

 
ajse ruku
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am facing a strange problem.If i run an exe file simply through a java class ,the exe is running.But the same code if i write in a sevlet(tomcat),the exe is not running.What could be reason for this?My code is

Runtime r=Runtime.getRuntime();
Process p=r.exec("C:/dir/com"); //where com is the name of the exe.

with regards,
ajse
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an advanced question. Moving...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!