我遇到了一个问题。我想使用一个特殊版本来运行我们的 java webstart 应用程序,但只适用于一个 jnlp。 (“它已经过测试,...... blabla 我们不能使用新版本...... blabla” 随机风袋)
所以我尝试像这样配置我们的 JNLP:
<resources>
<j2se version="1.6.0_29" href="http://java.oracle.com/products/autodl/j2se"/>
...
</resources>
当我现在启动这个 jnlp 时,即使安装了正确的 Java,我也会收到以下错误:
Error: The application has requested a version of the JRE (version 1.6.0_29) that currently is not locally installed. Java Web Start is unable to automatically download and install the requested version. This JRE must be installed manually.
更新
在JNLP File Syntax允许使用特定的 Java 版本,例如 1.6.0_29。我什至用 1.6.0_29-b11 试过了 - 仍然是同样的错误。
Exact product versions (implementation versions) may also be specified. by including the href attribute. For example, 1.3.1_07, 1.4.2, or 1.5.0-beta2 by Sun Microsystems, Inc. For example,
<j2se version="1.4.2" href="http://java.sun.com/products/autodl/j2se"/>
or
<j2se version="1.4.2_04" href="http://java.sun.com/products/autodl/j2se"/>
编辑
给出的答案没有帮助,也不是正确答案。
最佳答案
关于java - JNLP 应该使用特定的 Java 版本但错误结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10175453/