Can't get gears demo to work with atomic jars

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

Can't get gears demo to work with atomic jars

toffegast

I want to deploy my applet with the JOGL atomic jars, because of the minimal size. As a test, I tried to run the gears applet with the atomic jars (RC9). I couldn't get it to work. I get the following exception:

java.lang.NoClassDefFoundError: com/jogamp/common/util/PropertyAccess
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
        at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
        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)
        at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:76)
        at demos.applets.GearsApplet.init(GearsApplet.java:19)
        at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
        at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.jogamp.common.util.PropertyAccess
        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)
        ... 23 more

Indeed the com.jogamp.common package is not part of any of the atomic jars.

Can anyone shed some light on this? Any help is greatly appreciated.
Reply | Threaded
Open this post in threaded view
|

Re: Can't get gears demo to work with atomic jars

gouessej
Administrator
Hi

I think you have just found a bug, a atomic JAR should contain this package.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Can't get gears demo to work with atomic jars

Sven Gothel
Administrator
In reply to this post by toffegast
On 07/11/2012 03:22 PM, toffegast [via jogamp] wrote:

>
> I want to deploy my applet with the JOGL atomic jars, because of the minimal
> size. As a test, I tried to run the gears applet with the atomic jars (RC9). I
> couldn't get it to work. I get the following exception:
>
> java.lang.NoClassDefFoundError: com/jogamp/common/util/PropertyAccess
>         at java.lang.ClassLoader.defineClass1(Native Method)
>
> Indeed the com.jogamp.common package is not part of any of the atomic jars.
>
> Can anyone shed some light on this? Any help is greatly appreciated.

it's in gluegen-rt.jar !

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can't get gears demo to work with atomic jars

gouessej
Administrator
I'm so silly... gluegen-rt.jar is still necessary when using atomic JARs.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Can't get gears demo to work with atomic jars

toffegast
In reply to this post by Sven Gothel

I got it working by adding gluegen-rt to the loaded jars. Thanks!