Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webstart runs with wrong version of JRE

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"/>

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:

enter image description here

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

<j2se version="1.7+"/>

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

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

like image 761
assylias Avatar asked Mar 21 '12 10:03

assylias


People also ask

How do I set Java to default to JNLP?

Select the 'Default apps' category, then select the 'Choose default apps by file type' link. 4. Scroll down to the '. jnlp' file type and select 'Java Web Start Launcher' as the default app.

Is Java Web Start part of JRE?

Java Web Start is included in the Java Runtime Environment (JRE) since release of Java 5.0. This means that when you install Java, you get Java Web Start installed automatically.

How do I open a JNLP file with JRE?

Right-click a JNLP file and click “Open With.” Select the “Java Web Start Launcher” application in the list or click “Browse,” browse to the “C:\Program Files (x86)\Java\jre[version]\bin” folder on your computer and double-click the “Javaws.exe” program file.

Is JNLP deprecated?

Java Applet and WebStart functionality, including the Applet API, The Java plug-in, the Java Applet Viewer, JNLP and Java Web Start including the javaws tool are all deprecated in JDK 9 and will be removed in a future release.


1 Answers

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.

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.

like image 72
assylias Avatar answered Oct 12 '22 00:10

assylias