ant - Java Splash Screen Application -
i running issue takes long time (10 seconds or so) through ant setup , running java application. delay splash screen jvm @ least 10 seconds show up. unfortunately, can not move away ant start application due constraints. able do, , wondering if had better solution, create small splash screen application have splash screen argument jvm show , use runtime.getruntime().exec("wscript....) launch other application. concern how kill off first application.
what thinking of doing using jps within other application pid class kicked off application , kill process (the first application have timer avoid staying around if second application did not start reason). should there constraint main application (the second application) can run once , have bind solution avoid this. wondering if there better way terminate first application. should use rmi or way tell application exit? if possible less networking better.
in first application (splash application) create server socket port xxx , listen incoming messages, , apiece of code terminate (e.g. system.exit();) when message received, , in second application (when up) send message port xxx. can implement similar scenario using files. (1st application periodically checks specific file exits , when founds file exists terminates, 2nd application generates specific file when up...
Comments
Post a Comment