This article is the fourth one, in a series of several ones (). The previous article is here.
In this article, we will see how to deliver our application, using Java Web Start. In a few words, Java Web Start provides a way to install an application on your local PC, simply clicking on a link in a web page. Below are a few interesting pointers about this matter:
So, let's start to package our application according to Java Web Start requirements, so that it can be installed on linux systems, and on Windows systems as well:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
codebase="http://www.monblocnotes.com/"
href="review.jnlp">
<information>
<title>Révision</title>
<vendor>monblocnotes.com</vendor>
<homepage href="http://www.monblocnotes.com" />
<description>Révision du vocabulaire</description>
</information>
<security>
<all-permissions />
</security>
<resources>
<j2se version="1.6+" />
<jar href="review.jar" />
</resources>
<resources os="Linux">
<nativelib href="swt-gtk-linux-x86.jar" />
<jar href="swt-gtk-linux-x86.jar" />
</resources>
<resources os="Windows" arch="x86">
<nativelib href="swt-win32-windows-x86.jar" />
<jar href="swt-win32-windows-x86.jar" />
</resources>
<resources>
<jar href="derby.jar" />
</resources>
<application-desc main-class="com.monblocnotes.review.Review" />
</jnlp>
A few conclusions after this first test: