• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Those cherries would go best on cherry cheesecake. Don't put those cherries on this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic