title: Jogl Applet with JNLP runs in eclipse but not in the browser
body: <p>I am developing an applet for some OpenGL ES stuff using JOGL. In eclipse I can start the applet but in the browser I have trouble because the java console prints a NoSuchMethodError in my line where I create an instance of GLCanvas.</p>
  
  <pre><code>GLProfile glp = GLProfile.get(GLProfile.GL2ES2);
  
  GLCapabilities caps = new GLCapabilities(glp);
  caps.setSampleBuffers(true);
  caps.setNumSamples(8);
  
  glCanvas = new GLCanvas(caps); // throws NoSuchMethodError
  </code></pre>
  
  <p>The exception:</p>
  
  <pre><code>Exception in thread "thread applet-de.beuthhochschule.bachelor.martin.Benchmark-1" java.lang.NoSuchMethodError: javax.media.opengl.awt.GLCanvas.&lt;init&gt;(Ljavax/media/opengl/GLCapabilities;)V
   at de.beuthhochschule.bachelor.martin.Benchmark.initComponents(Benchmark.java:60)
   at de.beuthhochschule.bachelor.martin.Benchmark.init(Benchmark.java:42)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1620)
   at java.lang.Thread.run(Thread.java:662)
  </code></pre>
  
  <p>I created a jar with and without the jogl libs (jogl, gluegen, nativewindow and newt) but it just didn't work.
  Does someone have an idea?</p>
  
  <p>My JNLP:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;jnlp href="applet-benchmark.jnlp" codebase="."&gt;
    &lt;information&gt;
      &lt;title&gt;WebGL-Benchmark&lt;/title&gt;
      &lt;vendor&gt;Martin Breuer&lt;/vendor&gt;
      &lt;homepage href="http://localhost/"/&gt;
      &lt;description&gt;Native reference implementation&lt;/description&gt;
      &lt;description kind="short"&gt;Reference implementation of the WebGL Benchmark&lt;/description&gt;
      &lt;offline-allowed/&gt;
    &lt;/information&gt;
  
      &lt;resources&gt;
        &lt;j2se href="http://java.sun.com/products/autodl/j2se" version="1.6+"/&gt;
        &lt;property name="sun.java2d.noddraw" value="true"/&gt;
        &lt;jar href="http://localhost/benchmark.jar" main="true"/&gt;
        &lt;extension name="newt-all-awt" href="http://jogamp.org/deployment/webstart/newt-all-awt.jnlp" /&gt;
      &lt;/resources&gt;
  
    &lt;applet-desc 
        name="WebGL-Benchmark"
        main-class="de.beuthhochschule.bachelor.martin.Benchmark"
        width="660" 
        height="500"&gt;
    &lt;/applet-desc&gt;
  &lt;/jnlp&gt;
  </code></pre>
  
  <p>My applet tag:</p>
  
  <pre><code>&lt;applet codebase="." code="org.jdesktop.applet.util.JNLPAppletLauncher" width=600 height=400
    archive="http://jogamp.org/deployment/util/applet-launcher.jar,
             http://jogamp.org/deployment/webstart/nativewindow.all.jar,
             http://jogamp.org/deployment/webstart/jogl.all.jar,
             http://jogamp.org/deployment/webstart/gluegen-rt.jar,
             http://jogamp.org/deployment/webstart/newt.all.jar"&gt;
      &lt;param name="codebase_lookup" value="true"&gt;
      &lt;param name="subapplet.classname" value="de.beuthhochschule.bachelor.martin.Benchmark"&gt;
      &lt;param name="subapplet.displayname" value="WebGL-Benchmark"&gt;
      &lt;param name="noddraw.check" value="true"&gt;
      &lt;param name="progressbar" value="true"&gt;
      &lt;param name="jnlpNumExtensions" value="1"&gt;
      &lt;param name="jnlpExtension1" value="http://jogamp.org/deployment/webstart/jogl-core.jnlp"&gt;
      &lt;param name="java_arguments" value="-Dsun.java2d.noddraw=true -Dsun.java2d.opengl=false"&gt;
      &lt;param name="jnlp_href" value="http://localhost/applet-benchmark.jnlp"&gt;
  &lt;/applet&gt;
  </code></pre>
  
  <p>The complete console log: <a href="http://pastebin.com/xjk84pTV" rel="nofollow">http://pastebin.com/xjk84pTV</a> (the log is partly translated into german, not sure how I can change that...)</p>
  
  <p><strong>update</strong></p>
  
  <p>Providing the basic jogl libraries by myself doesn't change anything...</p>
  
  <pre><code>&lt;resources&gt;
      &lt;j2se href="http://java.sun.com/products/autodl/j2se" version="1.6+"/&gt;
      &lt;property name="sun.java2d.noddraw" value="true"/&gt;
      &lt;jar href="http://192.168.0.39/jogl.all.jar" /&gt;  
      &lt;jar href="http://192.168.0.39/newt.all.jar" /&gt;
      &lt;jar href="http://192.168.0.39/nativewindow.all.jar" /&gt;
      &lt;jar href="http://192.168.0.39/gluegen-rt.jar" /&gt;
      &lt;jar href="http://192.168.0.39/benchmark.jar" main="true"/&gt;
      &lt;extension name="newt-all-awt" href="http://jogamp.org/deployment/webstart/newt-all-awt.jnlp" /&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>I also tried loading the applet this way but nothing changed...</p>
  
  <pre><code>&lt;script src="http://www.java.com/js/deployJava.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      var attributes = {
          code:'de.beuthhochschule.bachelor.martin.Benchmark',
          width:660, height:500
      };
      var parameters = {jnlp_href: "applet-benchmark.jnlp"};
      var version = "1.6";
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      deployJava.runApplet(attributes, parameters, version);
  &lt;/script&gt;
  </code></pre>