用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
中使用适当的版本
属性元素。
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屋!