Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webstart to use jre 1.4

 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Maris Orbidans
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Maris.
I will try with that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic