English

How To: Deploy MapObjects-Java applications using Java Web Start Technology

Summary

Instructions provided describe how to deploy a custom MapObjects-Java application using Sun Microsystems' Java Web Start technology.

Procedure

Follow the steps below:

  1. Select the necessary jar files:

    To deploy a custom application create a jar file or files of the actual application code and any MapObjects-Java jar files that are necessary to run the application.

  2. Sign the jars:

    All the jars selected in Step 1 need to be signed and a valid certificate should be associated with them. For more information on how to do this, refer to Step 11 through Step 13 in the following article.
    <a href='http://support.esri.com/en/knowledgebase/techarticles/detail/22918' target='_blank'>How To: Deploy MapObjects—Java in an applet using the Java Extensions mechanism</a> The article refers to signing jar files for use in applets, but the process is the same for Java Web Start.
  3. Create a .jnlp file:

    Once all the jars are signed and certified, the deployment configuration or the .jnlp file can be created.

    A sample .jnlp file appears as:

    Code:
    <jnlp spec="1.0" codebase="http://localhost:8080/examples/demos/" href="demo.jnlp">
    <information>
    <title>MapObjects Java</title>
    <vendor>Environmental Systems Research Institute</vendor>
    <homepage href="www.esri.com"/>
    <description kind="short">A demo of some capabilities of MOJ 2.0.1</description>
    <icon href="images/splash.gif"/>
    <icon kind="splash" href="images/splash.gif"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4+" java-vm-args="-Xmx256m"/>
    <jar href="jars/application.jar"/>
    <jar href="jars/esri_mo20res.jar"/>
    <extension name="demo1-ext" href="demo1.jnlp"/>
    </resources>
    <application-desc main-class="webstart1.Application1"/>
    </jnlp>

    In this example, the .jnlp files point to another .jnlp file called demo1.jnlp. This is done because different certificates were used to sign each jar and this requires different .jnlp files.
  4. Host the file on any server. The application can be distributed using Java Web Start technology.

Related Information