aspose file tools*
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
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Webstart to use jre 1.4" Watch "Webstart to use jre 1.4" New topic
Author

Webstart to use jre 1.4

Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
Hi,
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?


Rizwan
SCJA, SCJP, SCWCD, SCBCD, SCDJWS.
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.
 
jQuery in Action, 2nd edition
 
subject: Webstart to use jre 1.4