Login  Register

Re: Jogl in a webstart application

Posted by Pixelapp on Jul 19, 2013; 7:51am
URL: https://forum.jogamp.org/Jogl-in-a-webstart-application-tp4029613p4029614.html

Try not using local jogl jars, use jnlp the way they are used in the samples instead.

Here is the my jnlp file for my game:

<?xml version="1.0" encoding="utf-8"?>
<jnlp codebase="http://wavelogy.pixelapp.co"
      href="WavelogyDesktop.jnlp">
  <information>
    <title>Wavelogy</title>
    <vendor>Pixelapp Co.</vendor>
    <homepage href="http://pixelapp.co/"/>
    <description>Wavelogy the game.</description>
    <description kind="short">Racing game.</description>
    <icon href="images/icon_128.png" width="64"
      height="64"/>
    <offline-allowed/> 
    <shortcut online="false">
    <desktop/>
    </shortcut>
  </information>
  <update check="background" policy="always"/>

      <resources>     
      <property name="sun.java2d.noddraw" value="true"/>
      <jar href="WavelogyDesktop.jar" main="true"/>
      <extension name="jogl-all-awt" href="http://jogamp.org/deployment/jogamp-current/jogl-all-awt.jnlp" />
    </resources>

  <application-desc main-class="pixelapp.wavelogy.Wavelogy">
   <argument>NotFirstUIActionOnProcess</argument> 
  </application-desc>
</jnlp>

You should modify it for your application. Also, for local application jars you should use "file:///" in the beginning of the location.