Error Netbeans with JOGL

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

Error Netbeans with JOGL

mr.sbakan
When i can start JOGL , get error. My only code is ,

public class Main {

    public static void main(String[] args) {
   
       Frame MyFrame = new Frame("Hello World");
       GLCanvas MyCanvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
    }
}

Error
/////////////////////////////
run:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1028)
        at net.java.games.jogl.impl.NativeLibLoader$1.run(NativeLibLoader.java:72)
        at java.security.AccessController.doPrivileged(Native Method)
        at net.java.games.jogl.impl.NativeLibLoader.load(NativeLibLoader.java:58)
        at net.java.games.jogl.impl.GLContext.<clinit>(GLContext.java:51)
        at net.java.games.jogl.impl.windows.WindowsGLContextFactory.createGLContext(WindowsGLContextFactory.java:147)
        at net.java.games.jogl.GLCanvas.<init>(GLCanvas.java:72)
        at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:150)
        at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:118)
        at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:85)
        at javaapplication13.Main.main(Main.java:16)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)
////////////////////////////
Reply | Threaded
Open this post in threaded view
|

Re: Error Netbeans with JOGL

Demoscene Passivist
Administrator
Seems that u haven't supplied ur platform native libraries to the java library path. E.g. when u are on Windows u have to add gluegen-rt.dll, jogl_desktop.dll and nativewindow_awt.dll to ur path. Something similar has to be done on Linux and MacOS.