Java Web Start

The Java Web Start API is an interesting alternative to using applets. Java Web Start uses the Java Network Launching Protocol (JNLP) to transparently download and install Java apps locally. All the user has to do is to click on the install link on a web page. The installed apps can then be launched just like any installed app, by clicking on an icon on the desktop or through the Start menu, but they continue to be managed by the Java security policy unless authorized otherwise by the user. Web Start apps also automatically check for upgrades and update themselves over the net. Java Web Start is a form of zero administration client installation, which implies that the client doesn't have to do any work to install or maintain the app. JNLP apps may be signed, allowing the user to grant them fine-grained privileges, or unsigned. But even unsigned JNLP apps can take advantage of standard APIs that prompt the user for permission to perform basic operations, such as opening files and printing. Packaging your app to use JNLP is relatively easy, but we won't get into it here. The process mainly involves creating a JNLP deployment file that lists your JARs and specifies any special permission they require. You must then include an appropriate link in your web page that uses Web Start. The first time a user tries to install a JNLP app, they will have to install the Java Plug-in. Thereafter, the Java Web Start component manages all JNLP installs. See http://java.oracle.com/products/javawebstart/ for more information.

Comments