Posted by
p0pes on
Oct 18, 2010; 11:57pm
URL: https://forum.jogamp.org/Are-Jogl-Applets-Even-Possible-tp1722743p1729225.html
As long as you are willing to help I can keep trying.
What I'm using:
Windows 7 Home
eclipse-java-galileo-SR1-win32
jdk1.6.0_21
jogl-2.0-pre-20100926-windows-i586
Chrome/Firefox/Explorer (tried them all)
The code I use for the applet is taken from
http://github.com/sgothel/jogl-demos/blob/master/src/demos/applets/GearsApplet.javahttp://github.com/sgothel/jogl-demos/blob/master/src/demos/gears/Gears.javaHowever, if I use this exact code I get errors with GLProfile.initSingleton(...) so I just removed it from both files. (Not sure if thats a good thing to do or if its allowed). Also, I have to change GLAnimatorControl to FPSAnimator because again it says it does not exist. However, both of these errors only occur during deployment. Running the standard code in Eclipse works fine.
I sign the java doing this
http://wiki.plexinfo.net/index.php?title=How_to_sign_JAR_filesI use this code to deploy
http://jogamp.org/jogl-demos/www/applettest-jnlp.htmlThe first time I try to load the applet I get this error
Exception in thread "thread applet-GearsApplet-1" java.lang.NoClassDefFoundError: com/jogamp/newt/event/MouseListener
at GearsApplet.init(GearsApplet.java:17)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.jogamp.newt.event.MouseListener
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more
Then if I hit refresh I get this error
Exception in thread "thread applet-GearsApplet-2" java.lang.ExceptionInInitializerError
at javax.media.opengl.awt.GLCanvas.<clinit>(GLCanvas.java:78)
at GearsApplet.init(GearsApplet.java:16)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.media.opengl.GLException: No profile available: [GL2, GL3bc, GL4bc, GL2GL3, GL3, GL4, GL2ES2, GLES2, GL2ES1, GLES1], GLAvailability[Native[GL4bc false, GL4 false, GL3bc false, GL3 false, GL2 false, GL2ES1 false, GLES1 false, GL2ES2 false, GLES2 false], Profiles[, default null]]
at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:1008)
... 4 more
And thats where I am today. Also,
http://jogamp.org/jogl-demos/www/applettest-jnlp.html used to always for me but starting yesterday it doesn't work anymore.