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

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

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

android - Pass an Serializable object in AIDL -