Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Force version 1.5 autodownload

843807Jul 9 2005 — edited Jul 12 2005
My Problem:

My applet only runs under 1.5.
Under 1.4, I get a ClassNotFoundException, the connection is HTTPS (SSL), I guess, the 1.4 JRE has a problem with this. But under the 1.5 version, it works.

How can I force an automatic download and install of an 1.5.0_0x plugin for the browser ?

I have been trying the following so far:

1) Applet tag:
<pre>
<applet name="org.xxxxApplet"
code="org.xxxxApplet"
codebase=""
archive="xxxxApplet.jar, iaik_jce.jar, iaikPkcs11Wrapper.jar, jnlp.jar, plugin.jar"
width="636"
height="500"
mayscript="true">
<param name="xxxxFormName" value="xxxxforms.xml"/>
<param name="Language" value="<bean:write name="formTestForm" property="language" />" />
<param name="cache_option" value="Plugin"/>
Your browser must be configured for displaying Java v1.5+ applets.
</applet>
</pre>

This works of course, but uses the 1.4 jvms, if no 1.5 jvm is installed and/or set as default browser plugin jvm.

2)
a combined one for ie and netscape, using the object tag:
<pre>
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="636"
height="500"
codebase="http://java.sun.com/products/plugin/autodl/ jinstall-1_5_0-windows-i586.cab#Version=1,5,0,0">

<param name="type" value="application/x-java-applet;version=1.5">
<param name="CODE" value="org.xxxxApplet.class">
<param name="ARCHIVE" value="xxxxApplet.jar, iaik_jce.jar, iaikPkcs11Wrapper.jar, jnlp.jar, plugin.jar">
<param name="scriptable" value="true">
<param name="xxxxFormName" value="xxxxforms.xml"/>
<param name="Language" value="<bean:write name="formTestForm" property="language" />" />
<param name="cache_option" value="Plugin" />

<!-- The part in the comment tags invokes the Java Plug-in from Netscape -->
<comment>
<embed type="application/x-java-applet;version=1.5"
pluginspage="http://java.sun.com/products/plugin/1.5/plugin-install.html"
width="636" height="500"
CODE="org.xxxxApplet.class"
ARCHIVE="xxxxApplet.jar, iaik_jce.jar, iaikPkcs11Wrapper.jar, jnlp.jar, plugin.jar"
scriptable=true
xxxxFormName="xxxxforms.xml"/>
Language="<bean:write name="formTestForm" property="language" />"
cache_option="Plugin">
<noembed></noembed>
</embed>
</comment>
</object>

</pre>

This one almost works (under IE6, Win2000):
I get a dialog which asks me, if I would like to download
http://java.sun.com/products/plugin/autodl/ jinstall-1_5_0-windows-i586.cab
( from an unknown / not certified producer...)
I click yes - and nothing happens - no download.

Did I insert the wrong clsid, or is there another way for solving this ?

I appreciate any answer.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2005
Added on Jul 9 2005
5 comments
214 views