Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

correct jre for application

 
william kane
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My application needs JDK 1.4.2 to execute.When users with other versions of JDK try to access my application using web start the application doesnot launch.I therefore had to uninstall JDK versions other than 1.4.2 for launching the application.
How can i configure my JNLP file to ensure that only Jre for Java 1.4.2 is downloaded(if not present with the client) and used irrespective of the JRE installed on the client?I also need to ensure that all this happens without the end user intervention.
Thanks in advance
william
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can specify an exact version of the JRE to run for a webstart application, and where to download it from.

However, you need to ensure that the end users have install rights on their machines otherwise it will not work.

The syntax is something along the lines of:



See http://www.vamphq.com/jwsfaq.html#jre-platform-ver for an explanation.

Cheers, Jared.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic