由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Help! application update issues.
相关主题
[请教]调用外部命令编码的问题Re: How can I call another program from Java?
how to use JAVA to created named pipe under windows?Java runtime?
JDK 1.5 is outRe: [转载] Re: .jar文件是怎么产生的?
[转载] 有用Eclipse的嘛?Re: 怎么能是JAVA里的数组开的更大?
What's new in Java 6?Re: The real Risk
macosx下,找不到javaws.jar和jnlp.jarRe: unix环境下如何在java程序中执行命令行?
javaFX谁有经验?.net vs. J2ee(zhuan)
java web start的奇异问题Java Telnet Client Implementation v0.99Beta
相关话题的讨论汇总
话题: updater话题: update话题: jars话题: issues
进入Java版参与讨论
1 (共1页)
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 :(

1 (共1页)
进入Java版参与讨论
相关主题
Java Telnet Client Implementation v0.99BetaWhat's new in Java 6?
JAVA RUNTIME.EXEC 一问macosx下,找不到javaws.jar和jnlp.jar
Jar questionjavaFX谁有经验?
question about Jbuilderjava web start的奇异问题
[请教]调用外部命令编码的问题Re: How can I call another program from Java?
how to use JAVA to created named pipe under windows?Java runtime?
JDK 1.5 is outRe: [转载] Re: .jar文件是怎么产生的?
[转载] 有用Eclipse的嘛?Re: 怎么能是JAVA里的数组开的更大?
相关话题的讨论汇总
话题: updater话题: update话题: jars话题: issues