Java Web Start无法自动下载并安装所需的版本 [英] Java Web Start is unable to automatically download and install the requested version
问题描述
我的桌面上安装了Java 1.6 update 30.
I have java 1.6 update 30 installed on my desktop.
jnlp指定最低Java版本为Java 1.7.
The jnlp specifies that the minimum java version is Java 1.7.
但是我收到此错误
Java Web Start错误: 该应用程序请求了当前未本地安装的JRE版本(1.7+版本). Java Web Start无法自动下载并安装所需的版本.这个JRE 必须手动安装.
Java Web Start Error: The application has requested a version of the JRE (version 1.7+) that currently is not locally installed. Java Web Start is unable toautomatically download and install the requested version. This JRE must be installed manually.
更新:
此错误是什么意思? 如何强制或建议安装Java 7?
What does this error mean? How can I force or suggest a java 7 install?
如果将用户重定向到 http://java.com/en/下载/index.jsp
我知道这可以通过deployJava.js
谢谢!
推荐答案
- 将以下行添加到您的JNLP文件中
<java href="http://java.sun.com/products/autodl/j2se" version="1.7+" >
- 使用以下代码修改您的目标网页
在标头中添加Java脚本
add the java script in header
<script src="http://www.java.com/js/deployJava.js"></script>
在您的html文档正文中
in your html document body
<p><script> var url="url of your jnlp file ";
deployJava.createWebStartLaunchButton(url,'1.7.0');</script></p>
<p><script> var url="url of your jnlp file ";
deployJava.createWebStartLaunchButton(url,'1.7.0');</script></p>
有关更多信息,请参见部署Rich Internet Application
for more information please look at Deploy Rich Internet Application
我希望这能解决您的问题
I hope this will fix your issue
这篇关于Java Web Start无法自动下载并安装所需的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!