t***e 发帖数: 3601 | 1 I got a problem here. basically I have an application which, at startup,
will check for update, it will activate an updater and close itself. The
updater will download jars etc to replace the old jars for the application.
However, the application won't close itself unless the updater closes,
therefore hold the jars as resource and won't allow update.
Anyone have similar issues? How do you guys handle the update problem? | m******t 发帖数: 2416 | 2 WebStart is how we handle "the update problem". 8-)
Well, I guess if you have to do it yourself, try exec the updater as a whole
new process, and exit the application right after the updater is started. | t***e 发帖数: 3601 | 3
we have some dll and exe files that used by the JDIC so we can't use
webstart.
whole
That's exactly what I did and the application won't exit :(
【在 m******t 的大作中提到】 : WebStart is how we handle "the update problem". 8-) : Well, I guess if you have to do it yourself, try exec the updater as a whole : new process, and exit the application right after the updater is started.
| m******t 发帖数: 2416 | 4
webstart can handle native libraries. But never mind...
This seems to work for me:
public class Notepad {
____public static void main (String[] args) throws Exception {
________System.out.println("starting notepad");
________Runtime.getRuntime().exec("notepad.exe");
________System.out.println("notepad started");
____}
}
It exists, leaving the notepad running behind.
【在 t***e 的大作中提到】 : : we have some dll and exe files that used by the JDIC so we can't use : webstart. : whole : That's exactly what I did and the application won't exit :(
|
|