We have Windows XP with Java 1.5 and Java 1.6 installed. We try to launch JNLP file, there specified required Java version 1.5, like here:
http://java.sun.com/products/autodl/j2se
After JNLP file is downloaded, appears Java 1.6 window. Then, appears window that certificate is wrong and application doesn't run. If we uninstall Java 1.6, the application runs properly.
If we remove the above line from the JNLP file, the application runs with Java 1.6 (but it works wrong, since it was developed for Java 1.5)
So, it is important to run the application with Java 1.5.
Please suggest how to run this JNLP file with Java 1.5, while Java 1.6 is also installed in the system.
Here is the jnlp file, i just replaced all organization specific titles:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://server_url">
<information>
<title> Some title </title>
<vendor>Some Vendor</vendor>
<homepage href="some_ulr" />
<description>Product description</description>
<icon kind="splash" href="./splash.gif"/>
</information>
<security>
<all-permissions/>
</security>
<application-desc main-class="org.eclipse.core.launcher.WebStartMain">
</application-desc>
<resources>
<j2se version="1.5.0_22" />
<jar href="http://some_jar"/>
<jar href="http://some_jar1"/>
<jar href="http://some_jarN"/>
<property name="server" value="some_server"/>
<property name="port" value="8080"/>
</resources>
</jnlp>

application-descelement should be last, after theresourceselement. Maybe some of the other elements are out of the correct order as well - those two are the only ones I can say for sure.