Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can I call runtime.exec from javabeans?  RSS feed

 
tom gong
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I call runtime.exec from javabeans?
thank you for help!
tom
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, why not? One thing to watch out for is not to assume a particular "current directory". I recommend you make a test utility to experiment with the bean instead of starting out with a JSP or servlet. Most servlets books (including mine)have one or more examples.
Bill
------------------
author of:
 
tom gong
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
William:
Thank you for help, it worked now. Javabeans make things easy, it can call .exe directory, does not like ASP, we need to convert .exe file to com.
Thanks again, your Java 2 Exam Prep is great!.
Tom Gong
SCJP
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!