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

Best way to execute a command line program through Java  RSS feed

 
Vadiraj Deshpande
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am thinking of two approaches:
1) Use in-built support like Runtime.exec and Process classes.
2) Have a C-wrapper over the CLI and use JNI.
which is the better option in terms of performance? I have heard that scripting languages such as Perl are useful in this case. Can anyone guide me please?
Thanks,
-A
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!