• Post Reply Bookmark Topic Watch Topic
  • New Topic

start a java program

 
mark smith
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

how to start a java program in a java program?

thanks
[ April 13, 2007: Message edited by: mark smith ]
 
Campbell Ritchie
Marshal
Posts: 53165
124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rather old article here. I think you use Runtime.exec("java myClass arg0 arg1 arg2"); but you need diversion of the standard out and err streams.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!