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> |
Administrator
|
On Friday, October 15, 2010 14:16:58 shrey [via jogamp] wrote:
> > 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. you can check the git commit hash in the autobuild's: build number -> hudson-build -> git hash, or just look at the date. Sorry, build nodes will be reanimated today. ~Sven > 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> > > ______________________________________ > View message @ http://jogamp.762907.n3.nabble.com/initSingleton-not-found-tp1707368p1707368.html > To start a new topic under jogl, email [hidden email] > To unsubscribe from jogl, click http://jogamp.762907.n3.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=782158&code=c2dvdGhlbEBqYXVzb2Z0LmNvbXw3ODIxNTh8NDU1NjU4MjUx > -- health & wealth mailto:[hidden email] ; http://jausoft.com land : +49 (471) 4707742 ; cell: +49 (151) 28145941 Timezone CET: PST+9, EST+6, UTC+1 |
I didn't quite understand that (I'm new to git). The jogl.all.jar etc in webstart are from Apr-2010 so I'm now using the archived build close to that. But it doesn't solve the issue I'm facing with the applet. When I refresh the page containing this applet, it fails saying no valid profile available. Should I be doing something when the applet is destroyed? It seems to run correctly using the jnlp launcher.
|
Administrator
|
Build JOGL yourself or use more recent JARs as Sven suggested.
Julien Gouesse | Personal blog | Website
|
Free forum by Nabble | Edit this page |