Opening JNLP File in Java 6 JRE instead of JRE 7

前端 未结 10 1728
旧时难觅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:58

    I have an UAC controlled laptop with Windows 7 and two Java versions installed (1.8 and 1.7). The sesWebstart.jnlp has to be started with the older Java version, in my case 1.7. This worked for me: In the Java Control Panel, delete all entries for the application sesWebstart.jnlp (if exists). You can start the Java Cache Viewer in the command line:

    C:\Program Files (x86)\Java\jre1.7.0_55\bin> javaws -viewer
    

    The command starts the Java Control Panel and the Java Cache Viewer. Goto the Java Cache Viewer, select the application list and delete the entry for sesWebstart.jnlp (if exists).

    Close the Java Cache Viewer an goto the Java Control Panel. Goto the Settings of the temporary internet files and delete the cache files and the application itself. After that, close the Java Control Panel.

    Create a new batch file, that will start the sesWebstart.jnlp with the correct Java (the older one):

    "C:\Program Files (x86)\Java\jre1.7.0_55\bin\javaws.exe" "D:\Users\christian\Desktop\sesWebstart.jnlp" 
    

    Now, the sesWebstart Applet can start by executing this batch file.

提交回复
热议问题