我有什么:
JNLP文件:
<jnlp spec="1.0+" codebase="http://somehost:6020/webstart/DS/xxx/" href="DS.jnlp">
<information>
<title>DS WebStart</title>
<vendor>DS</vendor>
<homepage href="index.html"/>
<offline-allowed/>
<icon href="http://somehost:6020/DS_5.6.0.333/icon_32x32.gif"/>
<icon kind="splash" href="http://somehost:6020/DS_5.6.0.333/Splash.jpg"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.6.0_12" max-heap-size="128m" href="http://java.sun.com/products/autodl/j2se"
java-vm-args="-XX:MaxHeapFreeRatio=25 -XX:MinHeapFreeRatio=20 -Xss2M"/>
<jar href="http://somehost:6020/DS_5.6.0.333/sds.jar" download="eager"/>
<jar href="http://somehost:6020/DS_5.6.0.333/sresources.jar" download="eager"/>
<jar href="http://somehost:6020/DS_5.6.0.333/scommons-logging.jar" download="eager"/>
<jar href="http://somehost:6020/DS_5.6.0.333/slog4j.jar" download="eager"/>
<jar href="http://somehost:6020/DS_5.6.0.333/stclib.jar" download="eager"/>
<jar href="http://somehost:6020/DS_5.6.0.333/sconcurrent.jar" download="eager"/>
<jar href="http://somehost:6020/DS_5.6.0.333/scon.jar" download="eager"/>
<jar href="http://somehost:6020/DS_5.6.0.333/sDSLauncher-1.0.jar" download="eager"/
<nativelib href="http://somehost:6020/DS_5.6.0.333/jdic-native.jar" download="eager" />
</resources>
<application-desc main-class="com.ds.app.Main" />
</jnlp>
客户端操作系统:Windows XP和Windows 7。 客户端计算机上的JNLP文件总是通过以下快捷方式启动:javaws.exe DS.jnlp
问题: 当tomcat关闭时,应用程序从缓存启动,但是太懒了,就不可能使用它了。当tomcat关闭时,无法弄清楚javaws对应用程序有什么影响?请帮我解决这个问题
谢谢, 安德烈
更新1:在不同系统上玩游戏并进行测试后,我注意到该应用程序在Windows XP上运行良好。因为看起来javaws试图在启动应用程序时检查所有那些签名的罐子,而不是仅仅从现金中读取它。在Windows XP上,相同版本的java根本不会这样做。它只是启动应用程序。
更新2:因为看起来Windows 7连接超时比Windows XP超时高10倍。基本上,如果我能以某种方式设置一些可以解决问题的常规连接超时。
更新3:更改标签根本没有帮助。它仍然有效。
答案 0 :(得分:1)
如果您使用<update check="timeout">
运行,这听起来就像默认情况下一样,如果没有指定<update...>
。这会尝试更新,直到达到超时并且如果失败(Tomcat关闭),则继续后台(继续失败)。尝试使用<update check="always">
。
有关参考,请参阅<update ...>
tag