Applet tag in Firefox - Finding the preferred JRE

Hello all... My applet is embedded using the Object tag, in which the 'classid' attribute allows the applet to choose a preferred JRE version to run.

Now, I need to make the applet compatible with Firefox. For this, I am trying to do away with 'Object' tag and use the 'Applet' tag. So far, so good and the applet loads with Firefox. The only hitch is, I dont find any equivalent for classid attribute and I am about to sacrifice JRE choosing feature. Can someone give me ideas on how I can accomplish this with the 'Applet' tag.. Thanks in advance.

What is the purpose of a "JRE choosing feature"? The browser will use the JVM that the user selected for running applets anyway; what else are you looking for?

Sugantha Jeevankumar
Ranch Hand

Joined: Jun 06, 2007
Posts: 93

posted Sep 08, 2010 02:53:37

0

By JRE choosing I mean, if more than one version of JRE is installed, a particular version should be chosen and run. For instance, in my case, my machine has both 1.5 and 1.6 JREs installed, but my applet works best with JRE 1.5. Since an applet would choose the latest JRE out of all installed JREs, the classid tag jumps in and loads the applet using 1.5 JRE. The below link explains this,

Many thanks.. That sounds like exactly what I was looking for. I am checking it out. I will let you know how it goes.

Sugantha Jeevankumar
Ranch Hand

Joined: Jun 06, 2007
Posts: 93

posted Sep 08, 2010 23:29:54

0

I tried the following code,

It works fine with both IE and Firefox when only JRE 1.5.0_22 is installed. When I installed both JRE 1.5.0_22 and 1.6.0_20, I expected the 'version' argument to kick in and load the applet in JRE 1.5, instead I got the following message in my java console,