Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java web start alternative [closed]

We're looking for an alternative to Java web start that effectively does the same thing, just better implemented. We're having massive trouble with it. We have a few offices of XP desktops, all slightly different and so far only a handful have worked without serious tweaking. Problems are to do with not playing nicely with the proxy settings (using direct connection in Java control panel allows it to work), refusing to run when params like "-Xmx" are set but running fine when they aren't (until it runs out of memory) and other odd problems that we can't fix.

The way web start works is exactly what we want, i.e. connecting to a server that has the app, downloading anything that's changed, keeping a cache of jars, etc. Other teams here use 'clickonce' for their C# apps and it does effectively the same thing but seems to be less trouble.

I'm convinced we're not the only people to have run into this but searching around doesn't really show any alternatives. We've looked into writing a stub local application that is essentially just a URLClassLoader that loads up our app over the network on the fly but unfortunately that's too slow from other offices. Anyone have any ideas?

Thanks

Update

In case anyone is curious as to what eventually happened, we gave webstart another month or so but continued to run into problems so we implemented our own version. It's basically just a stub that has a URL class loader that you point at a webserver. It's < 200 lines of code and it has been working perfectly for months. It's not ideal but until someone improves webstart we'll stick with it.

Update 2018

So, several years later and I'm working on a new project with the same problem. Instead of writing our own webstart implementation this time we're using getdown. We've found it to be a vast improvement over web start and it's been working really well for us.

like image 904
David Avatar asked Jul 15 '10 09:07

David


People also ask

What can I use instead of Java Web Start?

Rocket Open Web Launch (OWL) is an open-source solution that's easy to set up, easy to use, and available to anyone who needs it. It's designed to run any application as configured in its JNLP file against a Java version which may no longer officially support Java Web Start.

Is Java Web Start still used?

In computing, Java Web Start (also known as JavaWS, javaws or JAWS) is a deprecated framework developed by Sun Microsystems (now Oracle) that allows users to start application software for the Java Platform directly from the Internet using a web browser.

Is WebStart dead?

In spring 2018, WebStart was discontinued and in autumn 2018 it disappeared with the release of Java 11. Large companies in particular cannot convert internal IT processes (such as rolling out clients) within such a short period of time.

Why is JNLP not launching?

Sometimes, your system might not recognize JNLP files properly for executing them with the Java Web Start application. In such cases, you will have to modify the file association of your computer to correctly open the JNLP files with the Java Web Start application.


2 Answers

My company is also experiencing webstart pain especially with JRE 1.6 update 19 and 20. Our problems revolve around the Mixed Code security warning. (everything is properly signed and the problem is intermittent)

Anyhoo, I stumbled across getdown by threerings. I haven't tried it yet, but seems promising https://github.com/threerings/getdown/wiki

like image 195
squaat Avatar answered Oct 05 '22 11:10

squaat


I use JWS extensively in my company. The ONLY real problem that I've seen with JWS occurs only when you try to run JWS from cache AND your client's machine has just upgraded to a newer version of Java. The application will fail to launch with a "Unable to launch", "cache file not found" error or something similar.

There are two ways that I use to fix this problem: I either clear the cache and have them reinstall the app, or I simply have them click on the URL again from my website (easiest for my users). In both cases, the problem fixes itself. This would explain why several developers here never see this problem, most likely because their users always click on a URL instead of the installed launcher.

As a workaround, and in some of my mission critical apps, I use either of the following inside a script:

java -jar netx.jar -jnlp http://url/to/my/launch.jnlp

or

javaws http://url/to/my/launch.jnlp

where netx is a third party library.

It is not the prettiest solution, but for me these work 100% of the time.

Now, if I could only figure out how to get the desktop shortcuts from not going to hell... but that's a discussion for another time.

like image 32
Edgar Hilton Avatar answered Oct 05 '22 11:10

Edgar Hilton