esuslogo
 [To advertise Java(tm) Events here, contact joris@esus.com!]
banner

Java™
by example!






New @ Esus.com


  gb  In-house search engine for better results!

  gb  Get updates with the esus.com
newsletter!









  Home 
 Browse Categories 
 Ask a Java Question 
 Help 
  For Java Tips & Tricks, subscribe to the esus.com newsletter!
Search Java Q&A, Links, API's:   adv 

How do I get started with the Java Web Start?
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[])

This code sample is only viewable to esus.com members
Login or become a member!



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.


This code sample is only viewable to esus.com members
Login or become a member!



3) Create a JNLP file:

This code sample is only viewable to esus.com members
Login or become a member!



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!



This code sample is only viewable to esus.com members
Login or become a member!



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!





Terms of Service | Privacy Policy | Contact

Copyright © 2000-2003 Esus.com - All Rights Reserved 
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. Esus.com is independent of Sun Microsystems, Inc. All other trademarks are the sole property of their respective owners.