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

查看:27
本文介绍了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.

但是我收到此错误

自动下载并安装请求的版本.这个 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. 使用以下代码修改您的着陆页

在header中添加java脚本

add the java script in header

<script src="http://www.java.com/js/deployJava.js"></script>

在您的 html 文档正文中

in your html document body

<代码>

<脚本>var url="你的 jnlp 文件的 url";deployJava.createWebStartLaunchButton(url,'1.7.0');</script></p>

更多信息请查看部署富互联网应用

希望这能解决您的问题

这篇关于Java Web Start 无法自动下载和安装请求的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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