This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to execute a command from java application  RSS feed

 
Aparna Yadav
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know for this we have to make use of Runtime class.
Actually i have got a sample code from net but that code is to execute javac command from the java application.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

but that code is to execute javac command from the java application

...and how does this differ from executing any other "command"? If you know to use Runtime and you have an example I reckon you've probably got all the resources you need to get this working. If you try it and get a problem you don't understand post that, otherwise I'd suggest you are best just going with what you've got and experimenting.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!