webstart guide

From autoplot.org

Jump to: navigation, search
  1. Create a launch file named mydata.jnlp by saving and renaming the (xml) file autoplot.jnlp. See http://autoplot.org/jnlp/ for examples.
  2. In mydata.jnlp, change the codebase and href attributes of the jnlp element to point to the location of mydata.jnlp. This tag points to the jnlp that webstart will actually use. (Otherwise, it would be impossible to push changes in the jnlp to clients that already have the application installed.)
  3. In mydata.jnlp change the URL http://myvxo.org/data/datafile.cdf to the location of your data file.
  4. Put a link to mydata.jnlp somewhere on your web page. When the link is clicked, Autoplot will start with the URL you entered in the address bar. (You may need to configure Apache to recognize the .jnlp mime type by modifying the Apache configuration file or a .htaccess file.)

mydata.jnlp:

<?xml version="1.0" encoding="utf-8"?> 
 <jnlp spec="1.0+"  codebase="http://myvxo.org" href="myjnlp.jnlp"> 
 
  (From here and above, copy the file http://autoplot.org/autoplot.jnlp)
  (If you want Autoplot to start with your data file in the URL by default,
   edit the line with the argument element below.)
 
  <application-desc main-class="org.virbo.autoplot.AutoPlotUI">
            <argument>http://myvxo.org/data/datafile.cdf</argument>
         </application-desc>        
      </application-desc>
 </jnlp>
Personal tools