Reply – Help in Java (netbeans & eclipse)
Your Name
Subject
Message
or Cancel
In Reply To
Help in Java (netbeans & eclipse)
— by tamb20 tamb20
Hi

I am Mac user. I have a java code run on both (netbeans & eclipse). When I tried to run in each IDEs:

For Netbeans :

Exception in thread "J3D-Renderer-1" java.lang.NoClassDefFoundError: apple/awt/ComponentModel
        at com.sun.opengl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo0(Native Method)
        at com.sun.opengl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo(JAWT_DrawingSurface.java:56)
        at com.sun.opengl.impl.macosx.MacOSXOnscreenGLDrawable$1.run(MacOSXOnscreenGLDrawable.java:165)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.opengl.impl.macosx.MacOSXOnscreenGLDrawable.lockSurface(MacOSXOnscreenGLDrawable.java:163)
        at com.sun.opengl.impl.macosx.MacOSXOnscreenGLContext.makeCurrentImpl(MacOSXOnscreenGLContext.java:57)
        at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134)
        at javax.media.j3d.JoglPipeline$QueryCanvas.doQuery(JoglPipeline.java:9049)
        at javax.media.j3d.JoglPipeline.getBestConfiguration(JoglPipeline.java:8797)
        at javax.media.j3d.Renderer.doWork(Renderer.java:514)
        at javax.media.j3d.J3dThread.run(J3dThread.java:275)
Caused by: java.lang.ClassNotFoundException: apple.awt.ComponentModel
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 11 more

For eclipse:
Exception in thread "J3D-Renderer-1" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
        at java.lang.Runtime.loadLibrary0(Runtime.java:849)
        at java.lang.System.loadLibrary(System.java:1088)
        at com.sun.opengl.impl.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:189)
        at com.sun.opengl.impl.NativeLibLoader.access$000(NativeLibLoader.java:49)
        at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeLibLoader.java:80)
        at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:103)
        at com.sun.opengl.impl.NativeLibLoader.access$200(NativeLibLoader.java:49)
        at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:111)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:109)
        at com.sun.opengl.impl.macosx.MacOSXGLDrawableFactory.<clinit>(MacOSXGLDrawableFactory.java:53)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:191)
        at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:108)
        at javax.media.j3d.JoglPipeline$QueryCanvas.<init>(JoglPipeline.java:9029)
        at javax.media.j3d.JoglPipeline.getBestConfiguration(JoglPipeline.java:8793)
        at javax.media.j3d.Renderer.doWork(Renderer.java:514)
        at javax.media.j3d.J3dThread.run(J3dThread.java:275)

How I can solve this problems?

On eclipse I but jogl into library bath but it did not work.

I tried to do the follow :
https://gouessej.wordpress.com/2012/08/01/java-3d-est-de-retour-java-3d-is-back/
However, I do not understand where is the issue.