• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic