
|
First, make sure your webmaster or yourself has configured the webserver to handle JNLP files (Java Web Start launch files). Check here to find out exactly what to do. These are the steps you can take to deploy a Java Web Start HelloWorld application: 1) Write your application. The entry point is public static void main(String[])
2) Create a JAR file. To use Java WebStart, your application has to be packaged up into a (set of) JAR file(s). Take the following steps to create a JAR file from our Main class.
3) Create a JNLP file:
4) Create the HTML in which you put a link to your JNLP file. To demonstrate, I kept the HTML as simple as possible. However, when deploying a real-world application, you should include some javascript code to check whether Java Web Start is installed on the client's machine at all and tell the user what to do to get it. Check out other question/answers on this site or the FAQ on Sun's site!
5) Deploy both the JNLP and Jar file on your server. 6) Try it out: http://www.esus.com/webstart/WebStartExample.html. Further Information Author of answer: Joris Van den Bogaert Comments Comments to this answer are only viewable by members. Login or become a member! |