Redian新闻
>
Help! application update issues.
avatar
Help! application update issues.# Java - 爪哇娇娃
t*e
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?
avatar
m*t
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.
avatar
t*e
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.

avatar
m*t
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 :(

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。