jar - How can I run a java program from a java program? -
this question has answer here:
- running java program java program 3 answers
i write java program can run java programs main class in runtime. how can that?
read this.
basically run new process , execute
process tr = runtime.getruntime().exec( new string[]{ "xxx" } );
where xxx
phrase type in commandline. remember program might in different location current execution might have type command java \path\to\program\program
or such.
Comments
Post a Comment