所以我试着像这样配置我们的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”/>
编辑
给出的答案没有帮助,也没有正确的答案.
解决方法
安装1.6.0_29并不足以告诉webstart它可用.有关更多信息,请参见this post