Home Page

Java Web Start

As browser support for plugins declines, I have tested running javAPRS using JNLP which, loosely translated, is Java Web Start. This allows javAPRS to be run independently of the browser. To accomplish this, 2 things are needed on the server: a .jnlp file which defines the applet in much the same way as it does in the HTML applet tag and the server must send the .jnlp file with a MIME type of application/x-java-jnlp-file. The latter is usually done using a site-level configuration file if not already implemented server-wide.

The JNLP file will have the following basic format:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http//yourwebsite/javAPRS">
        <title>Title for javAPRS Applet</title>
        <vendor>Pete Loveall AE5PL</vendor>
        <java version="1.7+"/>
        <jar href="javAPRS2.jar"/>
    <applet-desc name="javaapplet" main-class="javAPRS"  height="780" width="780">
       <param name="autoMapRedraw" value="1"/>
       <param name="backgroundColor" value="white"/>
       <param name="BingZoom" value="11"/>
       <param name="dataFile1" value="netc:12345:youraprs-isserver"/>
       <param name="highlightColor" value="13"/>
       <param name="mapCenterLat" value="33.19583"/>
       <param name="mapCenterLon" value="96.56248"/>
       <param name="purgeCache" value="45"/>
       <param name="serverCommand" value="filter a/33.405/-96.845/32.981/-96.295 p/FWD"/>
       <param name="showNewStations" value="false"/>
       <param name="wxPlotColor" value="13"/>

Note the "/>" terminating each param tag which is required in XML.