JRE Detected---Version Collision problem!!--plz help..it's urgent
843798Feb 9 2005 — edited Feb 17 2005Hello ,
I am working on developing a upload component in applets that would be used to
Let the user browse thru his/her local file system, select it and then upload that file
to a Specific location on the server, during this file transfer operation it also
Shows the bytes remaining and a progress bar with percentage.
I have developed it already and my purpose is to make it available as a cross-
Platform independent component that can simply be merged/used with just about
any application developed in any language/or on any platform and so I developed
it in java using applets, bcauz it has to run and be accessible via a browser.
Now, the component is working fine but there�s a problem to which I have not
Found a complete and stable solution.
The problem is with the JRE(Java Runtime Environment), that if the html page that
Contains my applet does find a JRE already installed on someone�s browser but
With a different version to that of which I have used for example(1.4.2_07-b05) it
Gives an error saying �jre detected-version collision� and I understand fully by
Looking up on net as to what this error means, but how do I remove this problem
i.e. I simply want that (since I am already using the OBJECT tag in my html file)
when my html page containing loads up in any one�s browser then even if that
browser doesn�t contains a JRE in it, it should(my applet)should run, as I guess
my browser only had a default MSJVM earlier and had no JRE for instance, still
any site that I opened on net which contained applets , never gave me any such
kind of error.?
One temporary solution that I did, (although it�s not what I would like to do as it is
not user friendly at all) is that in my OBJECT tag I had used a codebase attribute
which contains the path of my jre�s exe file like this:
I am giving here the complete code for my html file:
<html>
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" name="Helper" width="900" height="200"
codebase="http://10.11.13.63:8090/j2re-1_4_2_07-windows-i586-p.exe">
<PARAM name="java_code" value="FileChooserDemo.class">
<PARAM name="java_archive" value="filechooser.jar">
<PARAM name="type" value="application/x-java-applet;version=1.4">
<PARAM name="progressbar" value="true">
<PARAM name="boxmessage" value="Please...wait..while..the..applet..starts..up">
<COMMENT>
<NOEMBED>
</NOEMBED>
</COMMENT>
</OBJECT>
</html>
further I also have to take care that if the above problem occurs i.e.(�JRE detected-version collsion�) then I got to tell the user to first go into his/her control panel and then
remove the JRE�s exe file from add/remove programs and then come back to his/her browser to get the JRE�s exe file downloaded automatically from the location of intranet
(my web server path) and run itself and install it on his/her browser bcauz of the tag that
I used above.
But all this is not at all a user friendly solution and I would not want any user to go thru the hassle of all this.
Can there be any way to let my applet run on any browser without the JRE problem ,
Plz suggest as I have now fully developed my applet upload component after a month�s
hard work , but is not able to now finally integrate it with our email server application that we have in our office, just bcauz of this problem..
Thanks in anticipation
Regards
Sd76