Java Web Start (Jnlp) Tutorial | Code Factory

Reference Link : Link

Donate : PayPal

Here is a brief explanation about Java Web Start from SUN

Java Web Start is a mechanism for program delivery through a standard Web server. Typically initiated through the browser, these programs are deployed to the client and executed outside the scope of the browser. Once deployed, the programs do not need to be downloaded again, and they can automatically download updates on startup without requiring the user to go through the whole installation process again.

This tutorial shows you how to create a Java Web Start (Jnlp) file for user to download, when user click on the downloaded jnlp file, launch a simple AWT program.

Step 01 : Directory Structure

Step 02 : Create file

Step 03 : Right click on project and Export jar

Step 04 : Open CMD with folder where you save the jar and run below command

Step 05 : Assign keystore to jar file

Step 06 : Deploy Jar

Copy Test.jar in <tomcat> > webapps > ROOT folder

Step 07 : create Test.jnlp and copy below code

Step 08 : copy Test.jnlp file in <tomcat> > webapps > ROOT folder

Step 09 : start Tomcat

Step 10 : open URL https://localhost:8080/Test.jnlp, it will prompt you to download the Test.jnlp file, just accept and double click on it.

Step 11 : double click on downloaded Test.jnlp

Step 12 : If everything fine then you will get result of Step : 15 Otherwise you will get below Error

Step 13 : open Control Panel and click on Java then click on Security tab

Step 14 : again double click on downloaded Test.jnlp

Step 15 : click on Run

Reference Link :