~~TOC~~
//
//
Lab46 Tutorials
Java Network Launch Protocol
Up and Running
Java Web Start Demo[[http://lab46.corning-cc.edu/~mcooper6/Payroll.jnlp|Launch It!]]
Java Network Launch Protocol provides Java developers with new options for deploying applications across many different platforms. JNLP is intended to help developers eliminate platform dependencies by providing Java Runtime Environment management utilities that ensure proper compatibility as well as a few convenient tools aimed at making complex tasks very easy. Further, keeping Java Web Start applications up-to-date is a breeze, as they can be launched from a web server, ensuring that each time the latest version of the program is launched.
===== The Basics =====
*Create a Java file and import the javax.jnlp classes
*Compile your .java file by setting the -classpath attribute to the path of javaws.jar (in your local JDK).
*Create a manifest file to identify the main class of your program.
*Archive your compiled Java classes into a .jar archive using a manifest file.
*Create a .jnlp file to direct the web browser to your .jar archive
*Put your .jnlp file and .jar archive on a server and link to the .jnlp file from a web page.
This document is not intended to introduce the Java programming language. It is instead aimed at those programmers who are looking to quickly test the capabilities of JNLP. Therefore, when I say begin by creating a Java file, I assume you know how to create a Java file. So, create your Java file.
===== Write and Compile =====