Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

start a java program  RSS feed

 
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
Sheriff
Posts: 54019
130
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!