Opening JNLP File in Java 6 JRE instead of JRE 7

前端 未结 10 1687
旧时难觅i
旧时难觅i 2020-12-14 19:56

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 Fil

相关标签:
10条回答
  • 2020-12-14 20:34

    Jnlp jre settings are under Java settings which is in Control Panel.

    Go to Control Panel and search "Java". In my case it is Java (32-bit). Open it and select Java tab, then Java Application Runtime Settings

    0 讨论(0)
  • 2020-12-14 20:36

    I have Java 6-based Java Web Start application ..How can I force JRE 6 just for this application?

    Use an appropriate version attribute in the j2se element.

    <resources>
        <!-- Any 1.6 JRE -->
        <j2se version='1.6*'>
        ...
    </resources> 
    

    Warning

    This solution no longer seems to work for installing earlier versions of the 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.

    0 讨论(0)
  • 2020-12-14 20:37

    Just drag link of jnlp file over appropriate version of javaws and it "Open with"picture how to open jnlp with javaws MacOS users usually open files the same way

    0 讨论(0)
  • 2020-12-14 20:39

    I had the exact same problem. I created a bat file that changes the JAVA_HOME variable, then uses javaws to run the jnlp file and it worked for me.

    Contents of the bat file:

    SET "JAVA_HOME=[path to your jre folder]"
    javaws [path to your jnlp]
    

    Hope it helps :)

    0 讨论(0)
  • 2020-12-14 20:43

    Another plausible solution that worked for me was to rename the javaws.exe(javaws2) program file of the most recent JRE/JDK since JVM always search for the newest version installed. If you need to rollback changes, just rename again to the original value

    0 讨论(0)
  • 2020-12-14 20:47

    I realize this is the oldest post ever, but it came up when I searched for a similar problem. Easiest way to deal with this (as a one time solution that won't affect the system overall) is to install a parallel older version of Java, and drag the jnlp on to the javaws.exe. (I had a web app that used Java 5 and wouldn't open otherwise)

    0 讨论(0)
提交回复
热议问题