Closed Bug 173140 Opened 23 years ago Closed 23 years ago

Moz does not recognize the Java plugin classid attribute in an <object> tag

Categories

(Core Graveyard :: Java-Implemented Plugins, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 153288

People

(Reporter: brentboyer, Assigned: blackconnect)

Details

User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1) Gecko/20020826 Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1) Gecko/20020826 Sun has a section on their website describing how to get the Java plugin to work with the <object> tag: http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/using_tags.html Using the info in the above link as a guide, I wrote the following fragment of html for a particular applet of mine: <object codetype="application/java" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/products/plugin/1.4/jinstall-14-win32.cab#Version=1,4,0,mn" width="250" height="400" style="vertical-align: baseline;"> <!-- Specify the Applet class to use: --> <param name="code" value="FastAnimationApplet.class"> <param name="codebase" value="./"> <param name="archive" value="./animationResources.jar"> <!-- Specify other features about the Applet: --> <param name="type" value="application/x-java-applet;jpi-version=1.4"> <param name="scriptable" value="false"> <!-- Specify archive caching (see http://java.sun.com/j2se/1.3/docs/guide/misc/appletcaching.html): --> <param name="cache_option" value="No"> <param name="cache_archive" value="./animationResources.jar"> <!-- Text to display if Java not supported: --> A Java applet should be here, but either your browser does not support Java 2 SDK Standard Edition v 1.4.1, Java has been disabled, or an error occurred. </object> This code fragment works perfectly fine in IE; the applet runs using Sun's plugin. But it fails with Mozilla. And it is NOT because I do not have the plugin on my machine or something. Instead, to get it work with Mozilla, I found that I had to change the classid attribute in the <object> tag to classid="java:FastAnimationApplet.class" and remove the codebase attribute. What is happening here? How come Mozilla seems to ignore a classid specification for the Javaplugin and requires the "java:" syntax instead? I REALLY hope that Moz is not incompatible with Sun's rec for the <object> tag, as I cannot write multiple versions of files, and will have to give up support for Mozilla if it differs from Sun/IE. p.s. I did the following bug search on the keywords "java plugin classid object" before filing this report, but it found nothing: Reproducible: Always Steps to Reproduce: 1. the code fragment in the details section says it all 2. 3. Actual Results: Mozilla displayed the text stating that "A Java applet should be here, but either your browser does not support Java 2 SDK Standard Edition v 1.4.1, Java has been disabled, or an error occurred." Expected Results: Run the applet using Sun's Java plugin None
>See bug 46569 Thanks for the ref Mats. I looked over the discussion, and the short answer seems to be that the classid that I am using specifies an ActiveX control. Unfortunately, Moz currently does not (and never will?) support ActiveX. People there seemed to suggest all kinds of alternate solutions, such as using multiple embedded <object> tags (one for IE, one for Moz), leaving out the classid and just use type and data attributes to specify things, etc. Their discussion is quite abbreviated, and I did not find anything that quite seems to address my problem. I tried playing around with some of their suggestions, but could not get it to work (probably because what I was using in the data attribute was wrong?) I would like a solution with the following characteristics: --everything is inside a single <object> tag --a Java applet is what will be run --the applet's code is located inside a jar file --I need to be able to specify a specific JVM version (which will be downloaded if the user does not have it) --the solution works under both IE and Moz --the html file must validate against the strict html 4.01 dtd If you could tell me how to do this I would be much obliged.
I recommend bug 108557 comment 66 for an example of what you want. That should work in any browser, I believe (though it is possible that IE will refuse to recognize it and demand that you give it an ActiveX component; in that case your only recourse is to nest <object> tags and to lobby with MS to support non-activeX plugins). The problem was that we tried to support the clsid stuff, but we ran into a huge number of issues because we were not in fact using the ActiveX component. *** This bug has been marked as a duplicate of 153288 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.