JNLP应该使用特定的Java版本,但是会导致错误 [英] JNLP should use a specific Java version but error results

查看:117
本文介绍了JNLP应该使用特定的Java版本,但是会导致错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里遇到问题.我想使用一个特殊的版本来运行我们的Java Webstart应用程序,但仅用于一个jnlp. (测试过,……blabla,我们不能使用新版本……blabla"是随机风包)

I'm facing a problem here. I want to use a special version to run our java webstart application but just for one jnlp. ("It was tested, ... blabla we can't use a new version... blabla" by random windbag)

所以我试图像这样配置我们的JNLP:

So I tried to configure our JNLP like this:

<resources>
    <j2se version="1.6.0_29" href="http://java.oracle.com/products/autodl/j2se"/>
    ...
</resources>

现在启动此jnlp时,即使安装了正确的Java,我也会收到以下错误消息:

When I start this jnlp now I get following Error even if the right Java is installed:

错误::应用程序请求了当前未本地安装的JRE版本(版本1.6.0_29). Java Web Start无法自动下载并安装所需的版本.此JRE必须手动安装.

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文件语法可以使用特定的Java版本,例如 1.6.0_29 .我什至尝试使用 1.6.0_29-b11 -仍然是相同的错误.

In the JNLP File Syntax it's allowed to use a specific Java version like 1.6.0_29. I even tried it with 1.6.0_29-b11 - still the same error.

确切的产品版本(实施版本)也可能是 指定的.通过包含href属性.例如1.3.1_07, Sun Microsystems,Inc.的1.4.2或1.5.0-beta2.例如,

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"/>

<j2se version="1.4.2" href="http://java.sun.com/products/autodl/j2se"/>

< j2se version ="1.4.2_04" href ="http://java.sun.com/products/autodl/j2se"/>

<j2se version="1.4.2_04" href="http://java.sun.com/products/autodl/j2se"/>

修改

给出的答案无济于事,不是正确的答案.

The given answer is not helping and not the right answer.

推荐答案

我已经安装了Java 1.6.0_21,并且已在Java控制面板中启用了它.但是,我得到的错误消息与问题中所述的消息相同:应用程序请求了当前未本地安装的JRE版本(版本1.6.0_29)"

I had installed Java 1.6.0_21 and it was enabled at the Java Control Panel. However I got the same error message that it's stated in the question: "The application has requested a version of the JRE (version 1.6.0_29) that currently is not locally installed"

即使我尝试在JNLP中使用不同的行,也得到了此消息,例如:

I got this message even if I tried with different lines in the JNLP, such as:

<j2se version="1.6.0_29"/>

<j2se version="1.6.0_29-b06"/>

我通过以下行编辑JNLP文件来解决此问题:

I solved this by editing the JNLP file with the following line:

<j2se version="1.6"/>

因此文档行也可以指定确切的产品版本(实现版本)"似乎是错误的.

So the documentation line "Exact product versions (implementation versions) may also be specified" seems to be false.

这篇关于JNLP应该使用特定的Java版本,但是会导致错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆