Meaningless Drivel is fun!*
The moose likes Applets and the fly likes Applet not using the latest installed JRE but using the one selected in Java control panel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "Applet not using the latest installed JRE but using the one selected in Java control panel" Watch "Applet not using the latest installed JRE but using the one selected in Java control panel" New topic
Author

Applet not using the latest installed JRE but using the one selected in Java control panel

Ash Aus
Greenhorn

Joined: Nov 13, 2011
Posts: 1
I have an applet that runs on 1.6. In my Java control panel, I have multiple JREs installed (1.5 and 1.6). If I tick (select) the older JRE version, the applet tag uses this version and tries to load the applet. Since my applet does not support 1.5 any more, I need all my users to automatically use the latest jre (1.6) installed on their machines, even if 1.5 or older is selected in their Java control panels.
I tried using the object tag with classId and Java version parameters, but the applet still tries to load with 1.5.
Does any one know how to force the applet to use 1.6 (latest installed) instead of 1.5 without the user needing to do any thing ??

Thanks..
Haina Minawa
Ranch Hand

Joined: Oct 13, 2011
Posts: 119
Ash Aus wrote:I have an applet that runs on 1.6. In my Java control panel, I have multiple JREs installed (1.5 and 1.6). If I tick (select) the older JRE version, the applet tag uses this version and tries to load the applet. Since my applet does not support 1.5 any more, I need all my users to automatically use the latest jre (1.6) installed on their machines, even if 1.5 or older is selected in their Java control panels.
I tried using the object tag with classId and Java version parameters, but the applet still tries to load with 1.5.
Does any one know how to force the applet to use 1.6 (latest installed) instead of 1.5 without the user needing to do any thing ??

Thanks..


As far as I know, there is no direct way to force an applet running under a specific JRE version.
You may consider to check JRE version upon applet's loading to show appropriate message to users.
Take a look at: http://stackoverflow.com/questions/168706/how-do-you-specify-a-particular-jre-for-a-browser-applet
 
GeeCON Prague 2014
 
subject: Applet not using the latest installed JRE but using the one selected in Java control panel