This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ash Aus
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic