This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JNLP and Web Start and the fly likes correct jre for application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "correct jre for application" Watch "correct jre for application" New topic
Author

correct jre for application

william kane
Ranch Hand

Joined: Nov 21, 2000
Posts: 260
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


Help me!Help you!!!
Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243
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.


SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: correct jre for application