我有一个应用程序,使用java web start启动Swing gui.用户安装了4个版本的java 1.6(1.6.0.3,1.6.0.5,1.6.0.7.1.6.0.11)
Webstart正在选择java版本1.6.0.11,但JAVA_HOME设置为java版本1.6.0.3.这会导致webstart出现任何潜在问题吗?
>富裕
最佳答案
在this thread中,提到Java Web Start应用程序检查此路径中可用JRE的版本:
原文链接:https://www.f2er.com/java/437547.htmlC:\Documents and Settings\[User]\Application Data\Sun\Java\Deployment\deployment.properties
(for Windows XP)
C:\Users\[User]\AppData\LocalLow\Sun\Java\Deployment\deployment.properties
(for Windows Vista)
在其中,行如:
deployment.javaws.jre.0.path=C\:\\Program Files\\Java\\jre6\\bin\\javaw.exe
deployment.javaws.jre.0.product=1.6.0_11
被发现.
我相信JWS将从这些设置开始,而不是来自JAVA_HOME变量的设置,这应该不是问题.
The
deployment.properties
file is used for storing and retrieving deployment configuration properties in the Java Control Panel. They are also used for customizing runtime behavior for both Java Plug-in and Java Web Start.There is always a User-Level
deployment.properties
file. Its location,which is non-configurable,is described below. There may also be an (optional) System-Leveldeployment.properties
file.