Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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
  • 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
  • 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
 
Ever since I found this suit I've felt strange new needs. And a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic