JNLP Descriptor

Listing 1. This correct version of the JNLP file for the project is simply an XML file that describes the program to be launched. The <jnlp> tag must have a correct path in it, with the URL path specified in the codebase and the name of the JNLP file itself in the href.

<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for WebStart Demo Application -->
<jnlp  spec="1.0+" 
codebase=
   "http://mycompany.com/JavaPro/Webstart/"  
   href="wsdemo.jnlp" >

   <information>
      <title>Web Start Demo</title>
      <vendor>JavaPro</vendor>
      <homepage href="docs/help.html"/>
      <description>Simple demonstration of Java Web 
         Start </description>
      <description kind="short">WSDemo</description>
      <description kind="tooltip">WSDemo</description>
      <offline-allowed/>
   </information>

   <security>
      <j2ee-application-client-permissions/>
   </security>

   <resources>
      <j2se version="1.4+" 
         initial-heap-size="32m" 
         max-heap-size="256m" />

      <jar href="wsdemo.jar" main="true" />
      <!--jar href="other_stuff.jar"-->
   </resources>

   <application-desc main-class=
      "com.javapro.javatecture.WSDemo" />
</jnlp>