Auto-download of new JRE not working properly

Howdy,

I have an application that I compiled with jdk1.6.0. When I run it, using JWS, on a computer with jre1.6.0+, it will work fine. However, when I try to run it and launch it using at outdated javaws.exe program in $JAVA_HOME/bin, I get the fun "Unexpected Error" message.

I though the JNLP file should recognize whether or not the current JRE is outdated, and automatically download it accordingly, but this does not seem to be the case when the user already has another version of the JRE on his/her machine.

Is there a way to change this, aside from having all users download the most recent JRE?

My JNLP file, if it helps, looks like this:

<?xml version="1.0" encoding="utf-8"?>

<!-- JNLP Filefor NVAC -->

<jnlp spec="1.0+"

codebase="http://localhost:port/kdb/"

href="NVAC.jnlp">

<information>

<title>NVAC Polling Controller</title>

<vendor>myVendor</vendor>

<description>NVAC GUI</description>

<homepage href="http://localhost:port/kdb/NVAC.jsp"/>

</information>

<security>

<all-permissions />

</security>

<resources>

<jar href="NVACdist/NVACPC.jar" main="true">

</jar>

<jar href="NVACdist/lib/Ice.jar" />

<j2se version="1.6.0+"

href="http://java.sun.com/products/autodl/j2se"/>

</resources>

<application-desc main-class="nvacICE.NVACMain"/>

</jnlp>

Thanks a lot,

Dan

[1930 byte] By [Djaunla] at [2007-11-27 4:50:03]
# 1
Update:It seems that this problem only arises if there are duplicate versions of the same JDK/JRE on a user's computer. Is there any way to fix this, or should I include a message to instruct the user to check for duplicate versions?
Djaunla at 2007-7-12 10:03:16 > top of Java-index,Desktop,Deploying...
# 2
Is the existing JRE 'enabled' for use? http://www.physci.org/jws/version.html#enable
AndrewThompson64a at 2007-7-12 10:03:16 > top of Java-index,Desktop,Deploying...
# 3
So basically, this is something the user must do, not something I can do when I deploy my application?
Djaunla at 2007-7-12 10:03:16 > top of Java-index,Desktop,Deploying...