Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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

Applets choosing preferred JRE version

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.. I have a scenario where a machine has JRE 1.5 and a higher version, say JRE 1.6_11. My applet, when deployed supports only JRE 1.5. Is there an option to set the preferred JRE version when a specific applet is loading.

Changing the JRE version in Java Control panel and the browser's options are not the desired solutions because the customer wants all other applets to work with JRE 1.6 and this particular applet to work with JRE 1.5. Is there a way to do this..? Thanks in advance..
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you're going about this the wrong way. A much better way would be to ask: "why is the code not compatible with Java 6?" and then to address that issue.
 
Sugantha Jeevankumar
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, We have tried running the application with JRE 1.6 and there are a lot of compatibility issues to handle like,

Discrepancies in the way mouse events behave.
The application closing down suddenly.

This application is a huge legacy app and right now it is not practical for us to migrate the same to 1.6 JRE. What the customer would like to have is a workaround, so that the this application can use JRE 1.5 in a machine with JRE 1.5 and 1.6.
 
Sugantha Jeevankumar
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found out a way to do this... by editing the classid attribute of Object tag to..

classid="clsid:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA" . This ensures 1.5 version of JRE gets used.
 
If you live in a cold climate and on the grid, incandescent light can use less energy than LED. Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic