Are Jogl Applets Even Possible?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Are Jogl Applets Even Possible?

p0pes
First off I know they should be http://jogamp.org/jogl-demos/www/applettest-jnlp.html

But I have had no such luck and tried a bunch of things. Even tried compiling the gears source itself. See http://www.javagaming.org/index.php?topic=22979.0 for what I've done. If anyone can help or give me a working example that I can compile and then successfully deploy on my own I'd appreciate it. Otherwise I think I'll just quit.
Reply | Threaded
Open this post in threaded view
|

Re: Are Jogl Applets Even Possible?

Sven Gothel
Administrator
On Monday, October 18, 2010 05:55:59 p0pes [via jogamp] wrote:
>
> First off I know they should be
> http://jogamp.org/jogl-demos/www/applettest-jnlp.html
>
> But I have had no such luck and tried a bunch of things. Even tried
> compiling the gears source itself. See
> http://www.javagaming.org/index.php?topic=22979.0 for what I've done. If
> anyone can help or give me a working example that I can compile and then
> successfully deploy on my own I'd appreciate it.

Please have a look here, to create a useful report:
        http://jogamp.org/wiki/index.php/Jogl_FAQ#Bugreports_.26_Testing

Even though the binaries are quite old, it works here on Linux and Windows
with a recent JVM (>= 6u19) and Firefox3 ..

New builds/version are in the works ..

> Otherwise I think I'll just
> quit.

Please stay with us a little longer, if you like :)

Cheers, Sven


--
health & wealth
mailto:[hidden email] ; http://jausoft.com
land : +49 (471) 4707742 ; cell: +49 (151) 28145941
Timezone CET: PST+9, EST+6, UTC+1
Reply | Threaded
Open this post in threaded view
|

Re: Are Jogl Applets Even Possible?

gouessej
Administrator
We really need a fresh build. The JARs and the JNLP files need to be updated too.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Are Jogl Applets Even Possible?

p0pes
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.java
http://github.com/sgothel/jogl-demos/blob/master/src/demos/gears/Gears.java

However, 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_files

I use this code to deploy
http://jogamp.org/jogl-demos/www/applettest-jnlp.html

The 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.