Install LWJGL on NetBeans

Started by PhObOS, December 18, 2007, 22:04:03

Previous topic - Next topic

PhObOS

Trying to install LWJGL 1.1.3 on NetBeans 6 and configuring as it´s said in documentation:
1. Main Class: lwjgltest.JFrame
2. Working directory: C:\Temp\LWJGLTest
3. VM Option: -Djava.library.path=S:\Info\Software\Java\Doc\OpenGL\lwjgl\lwjgl-1.1.3\native\win32
4. In library manager I add LWJGL with this files: jinput.jar , lwjgl.jar , lwjgl_test.jar , lwjgl_util.jar , lwjgl_util_applet.jar

The code complies with out problems.
I get this error:

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: nalGenBuffers
        at org.lwjgl.openal.AL10.nalGenBuffers(Native Method)
        at org.lwjgl.openal.AL10.alGenBuffers(AL10.java:987)
        at lwjgltest.JFrame.execute(JFrame.java:194)
        at lwjgltest.JFrame.<init>(JFrame.java:32)
        at lwjgltest.JFrame$4.run(JFrame.java:178)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

This is the line where its fails:
           
            bufferarray.position(0).limit(1);
            AL10.alGenBuffers(bufferarray); // Line with problems.
            if ((lastError = AL10.alGetError()) != AL10.AL_NO_ERROR) {
                System.out.println("genBuffer: " + lastError);
            }

PD: Even if I set -Djava.library.path in the argument option.

Thanks.

Matzon

make sure to call AL.create first

PhObOS