Java Web Start 1.4.2 Complaints

by Eric M. Burke

Apparently, JRE 1.4.2 is not quite ready for use with Java Web Start. I spent a lot of wasted hours last week trying to accomplish what should have been an easy task.


  1. Create a simple HTML start page. This page should detect if the user has JWS installed. If not, it should direct them to an auto-download site.

  2. Configure my JNLP file to say "1.4.2" as the version number. Again, JWS should auto-download the correct JRE if it is not already installed.


Broken Docs


Creating the HTML web page should be easy. Sun even provides little scripting examples in this document. I followed their instructions but it kept failing. Oops...turns out their code has a bug:
If Not(IsObject(
CreateObject("JavaWebStart.isInstalled.3"))) Then
javaws142Installed = 0

That little snippet is supposed to detect if version 1.4.2 of JWS is already installed. It did not work...after some investigation into the registry, I determined the correct variable should be JavaWebStart.isInstalled.1.4.2.0. Now that my script could detect if JWS was installed, it tried to download the JRE.

Broken Download


Well, the URL to auto-download JRE 1.4.2 was broken all week. I checked it again as I started writing this BLOG, and it seems to work, although 1.4.2 is not listed in the list of supported JREs. Hopefully they have this problem fixed.

Broken Dialog Box


After two days of fiddling, we gave up on automatically downloading the JRE. Now when we start our app, however, we get this stupid JWS dialog box that locks users out of our app. It is a modal dialog that gets buried beneath our own login dialog, so users cannot do anything until they Alt-Tab to cycle through windows and un-bury the JWS dialog. This is documented in Bug 4845341 on Sun's Bug Parade. So I spent half a day writing an incredibly ugly hack to bypass the problem. In my hack, we start a thread that continually searches for the JWS dialog and forces it to the front occasionally.

Typo


The final annoyance is the fact that the JWS Desktop Integration Dialog mentioned above has a spelling error! (apologies if my BLOG has spelling errors...I don't have a spellchecker) This makes our own app look stupid and amateur. I submitted this as yet another bug to Sun...it has not shown up yet so I cannot report the bug ID here.

Is Java Web Start Important to Sun?


I don't think Sun has put in enough effort to make JWS as great as it could be. It should be EFFORTLESS to install. I should be able to paste in some sample HTML for my starting page and that HTML should actually WORK. I should be able to specify JRE 1.4.2 in my JNLP file and it should download onto user's PCs AUTOMATICALLY.


This is a big pain in the butt right now. The potential for Java Web Start is tremendous, and all Sun has to do is iron out a few wrinkles in their implementation. But sorry, Sun, 95% completion is not good enough when it comes to deployment and installation of desktop applications. These things need to be 100% reliable and simple enough for a beginner to configure. I wasted way too much time tracking down problems that should not be there. I could go on and on, but I think I've made my point.


Make it work.


Make it simple.


Make it reliable.

Wouldn't it be great if Sun's JWS implementation was open source so we could go in and fix these bugs? Or if perhaps someone hosted an auto-download server somewhere that actually worked? I'm sure lots of companies would pay a nominal fee for such a service.


8 Comments

anonymous2
2003-07-05 13:13:12
Webstart Bug 4845341
Eric, I'm glad someone else finally noticed this bug. I reported it in early April, as it may be a show-stopper for our application. I would like to see your work-around, I haven't had time to try and fix it yet.


All in all, Web Start has worked out very well in solving what could have been a deployment nightmare. Hopefully they won't wait until Java 1.5 to fix Bug 4845341 -- notice in the "Evaluation" part of the bug parade page, it ends with "should fix for tiger". Tiger is 1.5. PLEASE VOTE FOR THIS BUG!


-Chris Lamprecht

anonymous2
2003-07-05 13:34:45
Great Stuff - Keep Up Your Attitude
Just to let you know that you're not alone. Check out the Lopica Web Start Services Server Pack Manual for details @ http://lopica.sourceforge.net/services
anonymous2
2003-08-19 17:00:45
JRE "Collission"
Hi Eric, I am on the other end of the problem as a user. First my PC (XP Pro) system gave a warning like "1.42 is not properly installed. So I uninstalled and then - after much searching for a download - downloaded and installed again. Now I have the JRE "Collission" message. I have spent like a whole day trying to resolve this issue - and of course I have gotten nowhere. If any of you program types can tell me what to do, I will invest in your retirement fund. An unhappy camper. stuff@harpernorth.com
anonymous2
2003-10-28 16:51:50
Cannot agree more.
Cannot agree more. It's a great technology and should be "EASY" to use. It should not give people reasons to say "man, it's Java. What can you do?".


For detecting whether JWS is installed or not, we ended up writing a very complicated Javascript file. For the annoying "Desktop Integration" dialog, we got a lot of complains from our application users. We are still trying to find a way to workaround it.


anonymous2
2003-11-18 12:40:03
still agreeing after all this time
It's 18 November 2003 and the auto-download for Windows is broken again. Also, the manual download link for Windows is broken. They really need to have some mirrors available for the JRE download.
anonymous2
2003-12-10 15:20:00
Java Web Start 1.4.2 Complaints
I had two Java Web Star programs. Deleted the old one, and the problem seems to have gone!
JHI Oslo Norway jonhi-iv@online.no
anonymous2
2004-01-07 14:11:37
true !!!
You are so right!!! It's the problem with SUN, they come with pretty good ideas and then they don't do it 100%. And as far as I am concerned it's mostly the client side of Java they neglect. If they go on like that people will convert to .Net sooner or later
mahmut
2004-07-15 02:16:29
Java Web Start 1.4.2 Complaints
sadsdsd