Webstart 使用错误版本的 JRE 运行 [英] Webstart runs with wrong version of JRE

查看:36
本文介绍了Webstart 使用错误版本的 JRE 运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要 Java 7+ 的 Java webstart 应用程序,所以 JNLP 有这行:

I have a Java webstart application that requires Java 7+, so the JNLP has this line:

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

这适用于各种 Windows XP &Windows 7 机器(其中大多数还安装了 Java 6),但在其中一台机器上,webstart 使用 Java 6 启动并失败(错误版本的 JRE).我找到了这篇文章并检查了 Java 设置,它们看起来不错:

This works on various Windows XP & Windows 7 machines (most of them also having Java 6 installed) but on one of them, webstart is launched with Java 6 and fails (wrong version of JRE). I found this post and checked the Java settings and they look fine:

我也尝试将 JNLP 行更改为此,但仍然不起作用:

I have also tried changing the JNLP line to this but it still does not work:

<j2se version="1.7+"/>

关于如何让 webstart 知道 JRE 1.7 存在的任何想法?

Any ideas on how to let webstart know that the JRE 1.7 is there?

配置:Windows 7,以管理员身份运行 - 从 IE 启动的 webstart 应用程序.

Config: Windows 7, run as administrator - webstart application launched from IE.

推荐答案

我发现了问题.我有 Java 6 32bits &安装了 64 位,但 Java 7 只安装了 64 位版本.我从 Internet Explorer 32 位启动 webstart 链接,我想它不能使用 64 位版本的 JRE.

I found the problem. I had Java 6 32bits & 64bits installed, but Java 7 only had the 64bits version installed. And I was launching the webstart link from Internet Explorer 32 bits, which I suppose cannot use a 64 bits version of JRE.

从 IE 64 位启动 webstart 工作正常.

Launching the webstart from IE 64 bits worked fine.

感谢您的评论,我在执行您推荐的操作之一时发现了问题.

Thanks for your comments, I figured the problem out while doing one of the manipulations you recommended.

这篇关于Webstart 使用错误版本的 JRE 运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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