When Will Java Web Start be Production Quality?
Join the DZone community and get the full member experience.Join For Free
java web start (jws) has always had great potential. with this deployment platform i can reach users such as mom-and-pops who would otherwise have to call their son (me) when they need to download and install something from the internet. mom-and-pops are not that interested in computers but they know how to write an email and click a link on a webpage. to start a jws application all they have to do is click a link on a webpage. while the application is being launched it is also cached locally. it can be started offline and updates are detected and installed automatically. the installation does not require much interaction or even awareness that something is being installed unless:
- javase is missing – in which case it will be installed automatically before the application is launched but dialogs are abundant.
- the application requires permission to do stuff outside the normal security sandbox – in which case a security dialog is shown.
the latter dialog may actually deter mom-and-pops from starting the application but despite this i consider their chances of successfully starting a jws application to be far greater than that of a native windows application.
a few months ago i revisited jws but sadly reaffirmed my impression from years back that jws is not production quality . many features have been implemented in fashion that i can only describe as “strange”, the documentation is a mess and central features are bug ridden.
glossing over the release notes for javase 6 update 18 today my eyes caught a number of fixes for jws. particularly the fix for a bug i reported myself 6888118 : “ jnlp extension installer is never invoked when uninstalling application “. uninstalling a jws application on windows is supposedly simple. the user navigates to the same place in the windows control panel where native applications are uninstalled, finds the jws application and hits “uninstall”. unfortunately jws has been broken and would only uninstall some parts of the application – in some cases leaving the user with a system that would complain again and again that the remaining pieces of the application was crashing. pretty awful bug for such a “mature” system – who dares install this “java stuff” from the net on their pc if it can’t be uninstalled? i hope to test this fix soon.
and oh yea the offline launch of cached applications was broken 6800992 . if the webserver was down you couldnt launch the application even though the application was right there on your local system and it was configured to allow offline launch. i built a fairly complicated solution to this problem. i can’t go back to vanilla jnlp if i want to support all those users with a broken version of java 6.
another real awful one was this 6863499 . the automatic update of jars didn’t work unless your jnlp file that describe the application was simple.
one strange design of jnlp was the requirement of a codebase href inside the jnlp file. its looks like its now optional for the common case 6866509 .
i’m happy that many critical bugs have been addressed but some of them are regression bugs. so with these fixed, what has been broken now? alright thats a bit pessimistic, i really want to use jws and i hope update 18 will turn out to have production quality!
Published at DZone with permission of Smeltet Kerne. See the original article here.
Opinions expressed by DZone contributors are their own.