wood burning stoves 2.0*
The moose likes JNLP and Web Start and the fly likes Webstart to use jre 1.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Webstart to use jre 1.4" Watch "Webstart to use jre 1.4" New topic

Webstart to use jre 1.4

Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
I have two versions of java in my machine 1.4 and 1.6
How do I launch my webstart application using 1.4 and not by 1.6?

Maris Orbidans
Ranch Hand

Joined: Mar 08, 2004
Posts: 149
You can use a command like this:

set BASE=C:\jdk1.4\jre
set SYSHOME=C:\WINDOWS\Sun\Java\Deployment
set USRHOME=C:\Documents and Settings\XXX\Application Data\Sun\Java\Deployment
set JRE_HOME=C:\jdk1.4\jre

"%BASE%\bin\java.exe" "-Djnlpx.home=%BASE%\javaws" "-Djnlpx.jvm=%BASE%\bin\javaw.exe" "-Djava.security.policy=file:%BASE%\javaws\javaws.policy" "-DtrustProxy=true" "-Djnlpx.deployment.user.home=%USRHOME%" "-Djnlpx.deployment.system.home=%SYSHOME%" "-Xbootclasspath/a:%JRE_HOME%\javaws\javaws.jar" -classpath "%BASE%\javaws\javaws.jar;%BASE%\javaws\javaws-l10n.jar" com.sun.javaws.Main http://localhost:7001/app/launch.jnlp

Or you can edit web start settings in Java plugin from control panel
Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
Thanks Maris.
I will try with that.
It is sorta covered in the JavaRanch Style Guide.
subject: Webstart to use jre 1.4
Similar Threads
JVM stuck on version 1.4
To install 2 jreS
Installing JRE 5.0 on Ubuntu 10 in i686 architecture
What versions of the exam are still eligible?
Error when running a java program