Link to home
Start Free TrialLog in
Avatar of j74
j74

asked on

Java Plugin 1.3.1.x and 1.4.2.x coexistence issue

Our customer has application where there is must of  JRE 1.3.1.x plugin is needed. But we gave him application which must require JRE 1.4.2.x.
Customer's browser's default JRE is getting overwrriten.
We followed following approache to resolve
1) install JRE1.3.1.x and make that as default JRE
2) Now for JRE1.4.2.x, we told cutomer to go for custom installation so that he should be not selecting this JRE1.4.2.x as default.
Even though customer's system has defined the JRE version in his html for his application, but the jer1.4.2.x is getting used when he tries to acces his application after JRE 1.4.2.x comes and sit in the machine.
Customer wants both co-exist. This looks near not to possible. Is there any way to handle this issue and make my customer happy?
thanks~Veerendra
Avatar of Mick Barry
Mick Barry
Flag of Australia image

are you specifying the required classid in your html?
And make sure u install 1.3 *last*.
Avatar of j74
j74

ASKER

yep. Our customer is using as follows:
//====================
<html>
  <head>
      <title>A. M. S.</title>
  </head>
  <body>
      <p align=center style='text-align:center'><FONT color=blue size=5>
      <b>Account Management System 5.2</b></FONT></p>
      <p align=center style='text-align:center'>
<!--"CONVERTED_APPLET"-->
<!-- HTML CONVERTER -->
<SCRIPT LANGUAGE="JavaScript"><!--
    var _info = navigator.userAgent; var _ns = false; var _ns6 = false;
    var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
//--></SCRIPT>
<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
    var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0)));
    var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
//--></SCRIPT></COMMENT>

<SCRIPT LANGUAGE="JavaScript"><!--
    if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 300 HEIGHT = 150  codebase="http://java.sun.com/products/plugin/1.3.1/jinstall-131-win32.cab#Version=1,3,1,0"><NOEMBED><XMP>');
    else if (_ns == true && _ns6 == false) document.writeln('<EMBED type="application/x-java-applet;jpi-version=1.3.1_01"  CODE = appletprac.AppleTest.class CACHE_OPTION="Plugin" CACHE_ARCHIVE = "Sappletprac.jar"  WIDTH = 300 HEIGHT = 150  scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3.1/plugin-install.html"><NOEMBED><XMP>');
//--></SCRIPT>
<APPLET  CODE = appletprac.AppleTest.class WIDTH = 300 HEIGHT = 150></XMP>
<PARAM NAME = CODE VALUE = appletprac.AppleTest.class >

<PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.3.1_01">
<PARAM NAME="scriptable" VALUE="false">
<PARAM NAME = "CACHE_OPTION" VALUE = "Plugin" >
<PARAM NAME = "CACHE_ARCHIVE" VALUE = "Sappletprac.jar" >

alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
      Your browser is completely ignoring the &lt;APPLET&gt; tag!
</APPLET>
</NOEMBED></EMBED></OBJECT>


<!--
<APPLET CODE = appletprac.AppleTest.class WIDTH = 300 HEIGHT = 150>
alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
      Your browser is completely ignoring the &lt;APPLET&gt; tag!

</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->

      </p>
        <p align=center style='text-align:center'><FONT color=blue size=4>Copyright 1999-2002, Network Design and Analysis Corporation</FONT></P>
  </body>
</html>
//========================================

We are using htmls for our app as follows:
//======
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE>INTEGRATED CONFIGURATION TOOL</TITLE>
<SCRIPT LANGUAGE="JavaScript"><!-- Hide script
window.history.forward(1);
// End script hiding --></SCRIPT>
</HEAD><BODY>      <OBJECT
            classid =  "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
            codebase = "/appcontent/apollo/sparx/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"
            WIDTH = 870 HEIGHT = 620 ARCHIVE = "" ID = "ICT" NAME = "ICT">
            <PARAM NAME = CODE                  VALUE = "com.cisco.sparx.SPARXApplet">
            <PARAM NAME = cache_archive_ex      VALUE = "/appcontent/apollo/sparx/SPARXApplet.jar;2.0.3.2,/appcontent/apollo/sparx/ksoap-j2se.jar;1.0.0.0">
            <PARAM NAME = "type"                VALUE = "application/x-java-applet;version=1.4">
            <PARAM NAME = "scriptable"          VALUE = "false">
            <PARAM NAME = "accessKey"           VALUE = "108275746478283691406256991">
            <PARAM NAME = "csid"                VALUE = "">
            <PARAM NAME = "punchoutsession"     VALUE = "N">
            <PARAM NAME = "environment"         VALUE = "Prod">
            <PARAM NAME = "ccouserid"           VALUE = "QASSUS">
            <PARAM NAME = "UIVersion"           VALUE = "2.0.3.2">
            <COMMENT>
                  <EMBED
                        type = "application/x-java-applet;version=1.4"
                        CODE = "com.cisco.sparx.SPARXApplet"
                        WIDTH = 870 HEIGHT = 620 ARCHIVE = "" ID = "ICT" NAME = "ICT"
                        cache_archive = "/appcontent/apollo/sparx/SPARXApplet.jar,/appcontent/apollo/sparx/ksoap-j2se.jar"
                        cache_version = "2.0.3.2,1.0.0.0"
                        scriptable = false
                        pluginspage = "/appcontent/apollo/sparx/JavaPluginIndex.html#download"
                        accessKey = "108275746478283691406256991"
                        csid = "" 
                        punchoutsession = "N"
                        environment     = "Prod"
                        ccouserid       = "QASSUS"
                        UIVersion       = "2.0.3.2" >
                        <NOEMBED></NOEMBED>
                  </EMBED>
            </COMMENT>
      </OBJECT>
</BODY></HTML>
//============================================
Thats using the dynamic classsid.
Avatar of j74

ASKER

When I stall 1.3.1.x as last, that customer application works. But when he tries my application again he will be prompted to install 1.4.2.x even though he has already installed it.
I am finding the same as mentioned above texts
classid for 1.3.1 specifically is:
CAFEEFAC-0013-0001-0000-ABCDEFFEDCBA
but it's also different for each 'sub' version.

can u explain again exactly what is is you need used.
do you know if your customers html ends up using the object or the applet tag?
Avatar of j74

ASKER

I got the class id from html converter tool which comes with jdk.
Avatar of j74

ASKER

Customer is not ready to change his app becuase it is coming as end of life by this year and on top it his application is developed by third party so no supprt on that app. So basically our applet/ way of installing plugin should take care of.
you could try using the following classid fin your html:

CAFEEFAC-0014-0002-0000-ABCDEFFEDCBA

asking for 1.4.2 or later.

its strange that your html prompts for install and theres doesn't considering they both use the same classid. Unless the customers is using the applet tag and thus the default vm.
Avatar of j74

ASKER

yeah. I agree. If the customer was using applet tag we could have told him to install JRE 1.3 and make that as default. Then it would be have worked both app.
Avatar of j74

ASKER

I don't know why SUN is giving same classId for JRE 1.3.1.x and JRE 1.4.2.x (i.e. 8AD9C840-044E-11D1-B3E9-00805F499D93)
thats the dynamic classid, stating to use the default vm.
Avatar of j74

ASKER

what is dynamic clsid? can we have different clsid. It does not look working if we change the clsid.any other opinion plx to overcome this issue
> what is dynamic clsid?

it is what u are using, it says use *any* version of the plugin.

> can we have different clsid.

yes each version has its own classid
Avatar of j74

ASKER

I gave CAFEEFAC-0014-0002-0004-ABCDEFFEDCBA which in jinstall-1_4-windows-i586.cab file. We changed the dynamic clsid with this one. Now we get the blank page. Nothing seems working.
what browser
Avatar of j74

ASKER

IE6.0.2800.x
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of j74

ASKER

Thank you all!