Previous Next        Current Page: NeXtMidas Training / Applets & WebStart / WebStart / WebStart
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
Applets & WebStart   
   - Applets   
   + Applets Lab   
   - WebStart   
      - WebStart   
   + WebStart Lab   
   - WebStart vs Applets   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Using WebStart
    • To use WebStart you need to do four things:
      1. Create the necessary JAR files
      This is done automatically if you do
      nm> make all <myopt>
      The JARS are placed in the $NMROOT/jars/ directory.
      2. Create the JNLP file
      The JNLP file specifies which JARS are required and which command is to be run.
      Like the applets, there are properties that can be set:
      AUX    - The read and write aux (e.g. "HOME HOME|RAM|DAT")
      OPTS   - The option trees to add to the path (e.g. "UCL,SYS")
      
      See Building WebStart Applications in the NeXtMidas
      User's Guide for details
      See $NMROOT/htdocs/shell.jnlp for a sample JNLP file.
      3. Upload the JAR files and JNLP file to a web server
      The files need to be uploaded to the web server.
      Some web servers may need a minor configuration update before using JNLP files, see Building WebStart Applications in the NeXtMidas User's Guide for details.
      4. Make a link to the JNLP file in a web page.
      All that is need is a simple link to the JNLP file, for example:
      <a href="myapp.jnlp">Launch MyApp via Java WebStart</a>
      If the user's web browser is not already configured to use WebStart, the user should get a popup asking what to do with the file. They should select "Open With Application" and choose javaws as the application (javaws is usually found at $JAVAHOME/jre/javaws/javaws).