Family Versioning... What am I missing here?

<APPLET codeBase="."

height="0"

width="0"

code="com/JavaVersionDisplayApplet.class"

name="display"

mayscript VIEWASTEXT>

</APPLET>

Now I do absolutely do not want to use the applet tag as it is depracated, however my applet runs fine when calling this.

I am trying to enforce JRE family versioning by specifying the classid for the JRE version 5 family running the same applet, see below.

<OBJECT

classid="clsid:CAFEEFAC-0015-0000-FFFF-ABCDEFFEDCBA"

width="0" height="0">

<PARAM name="code" value="com/JavaVersionDisplayApplet.class">

</OBJECT>

For whatever reason I cannot get the same applet to display using the OBJECT tag, I don't even get the Sun Console.

I snagged this code as part of an example provided on the Sun website.

Could it be that if I do not have this classid in my registry that it wouldn't even attempt to load the applet? Perhaps I need a more up to date JRE version?

3 Dukes for this one.

[1302 byte] By [maple_shafta] at [2007-11-27 6:23:03]
# 1
According to what I read, the Object tag is only for IE, the embed tag is only for Mozilla.When I tried to run what you had - modified slightly - in FF, it did nothing. In IE it tries to load but my classid is wrong I guess. But I think that's you pblm.
abillconsla at 2007-7-12 17:40:33 > top of Java-index,Java Essentials,Java Programming...
# 2
Hellooooooooooooooooo?
abillconsla at 2007-7-12 17:40:33 > top of Java-index,Java Essentials,Java Programming...
# 3

> According to what I read, the Object tag is only for

> IE, the embed tag is only for Mozilla.

>

> When I tried to run what you had - modified slightly

> - in FF, it did nothing. In IE it tries to load but

> my classid is wrong I guess. But I think that's you

> pblm.

I am aware that it is only supposed to work in IE, because our software is spec'ed for IE6 only. All JRE's from the latest update of JRE 1.4 and beyond should have references to the Family classid's.

I am attempting to run this applet on JRE 1.5.1_06. Perhaps if I upgrade to 1.5.1_11 then the applet will load?

That still doesn't make sense to me because I would at least think that the JVM would at least attempt to run the applet however I could be wrong.

I will give it a go and post back with the details.

maple_shafta at 2007-7-12 17:40:33 > top of Java-index,Java Essentials,Java Programming...
# 4
give it a width and height and take the path out of the value field and you should be good to go. After making sure my classid was good, that's all I needed to do to get an applet of mine to work.
abillconsla at 2007-7-12 17:40:33 > top of Java-index,Java Essentials,Java Programming...
# 5

[url]http://java.sun.com/javase/6/webnotes/family-clsid.html[/url]

The above link provides the documentation on Family Versioning and it seems I missed a small little blurb half way through.

"In the JRE 5.0 Update 7 release for Java Plug-in for Internet Explorer, two new family Class IDentifier (CLSID) for <object> tags are introduced."

For whatever reason I thought that these CLSID's were introduced as of Update 6 however Update 6 is only when they discontinued Static Versioning, NOT when they introduced Family Versioning.

Give it up for Sun to obfuscate an issue.

So anyway I installed the latest release for JRE 5 and sure enough my applet began to work with the <OBJECT> tag!

Thanks for your help and your time in helping me to test these things.

maple_shafta at 2007-7-12 17:40:33 > top of Java-index,Java Essentials,Java Programming...
# 6
You are welcome; however, FYI - I'm on v.1.4x and it works fine for me.
abillconsla at 2007-7-12 17:40:33 > top of Java-index,Java Essentials,Java Programming...