jar - How can I run a java program from a java program? -


this question has answer here:

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

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -