permaculture playing cards*
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 Java 8 in Action this week in the Java 8 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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Webstart to use jre 1.4
 
Similar Threads
Error when running a java program
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?