Login  Register

initSingleton not found?

Posted by shrey on Oct 15, 2010; 12:16pm
URL: https://forum.jogamp.org/initSingleton-not-found-tp1707368.html

Hi,

I'm trying to get a JOGL applet to work but the jar files hosted at webstart/ and webstart-next/ seem to be different from the autobuilds. I get an error saying GLProfile.initSingleton() does not exist. By commenting out the call I can get the applet to run in the browser but if I refresh the page the applet fails with the error saying no profile available. Am I doing something wrong?

My applet is loaded thus:

<applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
      width=800
      height=600
      archive="http://jogamp.org/deployment/util/applet-launcher.jar,
                           http://jogamp.org/deployment/webstart-next/nativewindow.all.jar,
               http://jogamp.org/deployment/webstart-next/jogl.all.jar,
               http://jogamp.org/deployment/webstart-next/gluegen-rt.jar,
                           http://jogamp.org/deployment/webstart-next/newt.all.jar,
               AppletTest.jar">
   
   
   
   
   
   
   
   
   
</applet>

The referenced jnlp is:

<?xml version="1.0" encoding="utf-8"?>
<jnlp href="applet-test.jnlp">
  <information>
    <title>JOGL JNLP Applet Demo</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <homepage href="http://jogamp.org/jogl-demos/"/>
    <description>Gears Demo</description>
    <description kind="short">Brian Paul's Gears demo ported to Java and JOGL.</description>
    <offline-allowed/>
  </information>

    <resources>
      <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
      <property name="sun.java2d.noddraw" value="true"/>
      <jar href="AppletTest.jar" main="true"/>
      <extension name="jogl-all-awt" href="http://jogamp.org/deployment/webstart-next/jogl-all-awt.jnlp" />
    </resources>

  <applet-desc
      name="Gears-Applet"
      main-class="test.AppletTest"
      width="800"
      height="600">
  </applet-desc>
</jnlp>