Java Web Start无法自动下载并安装所需的版本 [英] Java Web Start is unable to automatically download and install the requested version

查看:279
本文介绍了Java Web Start无法自动下载并安装所需的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的桌面上安装了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 to

automatically 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

谢谢!

推荐答案

  1. 将以下行添加到您的JNLP文件中

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

  1. 使用以下代码修改您的目标网页

在标头中添加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屋!

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