unable to run under jre 1.5.0_11 after uninstall of jre 1.6.0_1
I am experiencing the following scenarios and could use some ideas and or help.
Background:
I have an application that is launched via webstart from a shortcut on the desktop. The jnlp file indicated the need for jre 1.5.0_11.
Scenario 1:
I have jre1.5.0_11 installed on my box
- The application starts and runs fine.
I install jre 1.6.0_1
- Webstart tries to install jre 1.5.0_11 but fails saying that it is already installed.
I uninstall jre 1.6.0_1
- Webstart tries to install jre 1.5.0_11 but fails saying that it is already installed.
I must uninstall and then reinstall jre 1.5.0_11 in order for it to be recognized and allow Webstart to run my application.
Scenario 2:
Start with no java on the box. Install jre 1.6.0_1 and then install jre 1.5.0_11.
- Webstart recognizes that I have 1.5.0_11 installed and runs my application.
I uninstall jre 1.6.0_1
- Webstart tries to install jre 1.5.0_11 but fails saying that it is already installed.
I know this is a lot of information, but any help would be appreciated. I have an e-mail from Sun referencing a now non-existent bug.
Thanks,
Jerry
[1218 byte] By [
jarshea] at [2007-11-27 0:02:56]

# 1
I didn't go thru what you posted in detail. However, I suspect that something in this document applies: http://java.sun.com/developer/technicalArticles/JavaLP/javawebstart/AutoInstall.html
# 2
I do appreciate the fact that you responsed...But, I take it that you have either not experienced similar results, or you have not attempted either scenario.If anyone else has seen similar, please chime in. Regards
# 3
Ok, here is a little more information and a way that I am able to recreate what I am seeing. I would like to know if anyone else is also able to recreate it using the following steps.
Setup: I am using IE 6 and Windows XP with SP2.I am also behind a corporate firewall, but that does not seem to be a part of the issue.
demo_page = http://java.sun.com/products/javawebstart/demos.html
load_webstart_page = http://java.sun.com/products/javawebstart/needdownload.html?
Steps:
1. No version of Java installed on the computer and just rebooted.
2. Open IE and navigate to %demo_page%
3. Try running the "Application Manager" demo at the bottom of the page.
Results: You are redirected to %load_webstart_page%
4. Close IE
5. Install jre 1.5.0_11
6. Open IE and navigate to %demo_page%
7. Try running the "Application Manager" demo at the bottom of the page.
Results: The "Application Manager" application starts and runs.
8. Close IE
9. Install jre 1.6.0u1
10. Open IE and navigate to %demo_page%
11. Try running the "Application Manager" demo at the bottom of the page.
Results: The "Application Manager" application starts and runs.
12. Close IE
13. Uninstall/Remove jre 1.6.0u1
14. You can reboot now if you want, but it didn't make any difference for me.
15. Open IE and navigate to %demo_page%
16. Try running the "Application Manager" demo at the bottom of the page.
Results: You are redirected to %load_webstart_page% (No webstart installed..)
Now, could somebody validate this for me?
This is where I am having issues as noted in the first post. Our script notes that webstart is not installed. It tries to install Webstart by using the jre of choice (jre 1.5.0_11). It finds that the jre is already installed and fails the install and therefore fails to run the application.
At this point the only way to run is to uninstall/remove jre 1.5.0_11 and then to reinstall jre 1.5.0_11.
Thank you for your time.
# 4
The problem here is a bug in the uninstaller for JRE 1.6.0, and has been fixed for 1.6.0_02.
6478297: JavaWebStart.isInstalled objects not robust
the problem was the name of the dll used as the JavaWebStart ActiveX object changed from 1.5.0 to JDK 6. The new name "wsdetec.dll" was properly registered when JDK 6 is installed, but when it was uninstalled, it trys to reregister the "wsdetec.dll" from 1.5.0.
Problem is in 1.5.0 that dll was called "JavaWebStart.dll".
as I said, this will be fixed in 1.6.0_02 (6u2).
/Andy
# 5
Thank you for the reply and the resolution.
I had actually tried researching that bug id (6478297), but was not able to view it or see any form of resolution on it. (Submitted by a co-worker)
I had entered this as a bug and was given bug id 6543896 which has now been closed due to being a duplicate of the above bug. When I try to follow the link on the page, it says that it could not find that bug id.
I will test this under 1.6.0u2.
Thank you,
-jarshe
# 6
Everyboby Hello !
I read all your answers. I have the same problem. I have installed jre 1.5.0_11 and jre 1.6.0_01. Now, I can execute my programs only with jre 1.6. If I try to use jre1.5, I have some error : UnsupportedClassVersionError : bad version number in .class file.
If I remove jre 1.6 with control panel -> add/remove programs, I have still the same error.
Have you any solution to run with jre 1.5 even if we have installed (and perhaps remove) jre1.6? Perhaps, we have to remove some files or dll by hand...
I read that jre 1.6.0_02 solve problem but it's not available now.
Thanks for your attention
Nelly
Nella at 2007-7-11 15:56:03 >

# 7
If you compile a java source file with the javac from JDK 6, and you want to run it with the JRE fro J2SE 1.5.0, you need to compile with options :
"-source 1.5 -target 1.5", or you will get the UnsupportedClassVersionError when you run it.
The class file format has changed, but this option can be used to generate a class file with any earlier format,.
(the VM can always run class files of earlier formats, but not later.)
/Andy