在 Java 6 JRE 而不是 JRE 7 中打开 JNLP 文件 [英] Opening JNLP File in Java 6 JRE instead of JRE 7
问题描述
我需要在 Windows 机器上打开基于 Java 6 的 Java Web Start 应用程序.机器安装了 JRE 7,将 JRE 6 手动复制到 Program Files
文件夹.问题是,每当我想打开 JWS 应用程序时,它都会使用 Java 7 打开.即使我使用 JRE 6 中的 javaws
可执行文件,某些属性仍然引用 JRE 7 文件(我通过使用 javaws -verbose app.jnlp
.如何仅针对此应用程序强制使用 JRE 6?
I have Java 6-based Java Web Start application that I need to open on a Windows machine. The machine has JRE 7 installed, with JRE 6 copied manually to the Program Files
folder. The problem is that whenever I want to open the JWS application, it opens using Java 7. Even if I use the javaws
executable from JRE 6, some properties still refer to JRE 7 files (I verified this by using javaws -verbose app.jnlp
. How can I force JRE 6 just for this application?
推荐答案
我有基于 Java 6 的 Java Web Start 应用程序..我怎样才能为这个应用程序强制使用 JRE 6?
I have Java 6-based Java Web Start application ..How can I force JRE 6 just for this application?
在 j2se
元素中使用适当的 version
属性.
Use an appropriate version
attribute in the j2se
element.
<resources>
<!-- Any 1.6 JRE -->
<j2se version='1.6*'>
...
</resources>
警告
此解决方案似乎不再适用于安装早期版本的 JVM!
Warning
This solution no longer seems to work for installing earlier versions of the JVM!
我能想到的最佳原因是 Oracle 厌倦了发布早期 Java 版本的安全更新 - 因此迫使每个用户使用最新的 JVM.
The best reason I can think of for why it would fail to work is that Oracle is tiring of releasing security updates for earlier Java versions - so is forcing every user to use the latest JVM.
这篇关于在 Java 6 JRE 而不是 JRE 7 中打开 JNLP 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!