Tuesday 15 September 2015

Launch external app from java - and NOT have it tied to the VM -



Launch external app from java - and NOT have it tied to the VM -

there times when big java app needs launch external program. can pretty runtime.getruntime().exec("app name");

the problem launched app seems tied java process, gets terminated when java app exits. want leave other app running.

edit: made error above description. launched app not terminated.

the problem after original app exits, can not start 1 time again until launched app terminates. original app (and launched app) both launch4j generated .exe's.

so, how can maintain launched app preventing total exit original app?

(oh, , throw monkeywrench it, launched app uses 32bit jvm, while original app running in 64bit jvm.)

while shell command trick might work, did find easier way.

desktop.getdesktop().open("app name");

apparently launches app in way not remain tied original program.

java launch

No comments:

Post a Comment