Search code examples
javanetbeanslwjgl

no lwjgl in java.library.path - Netbeans


Im currently using LWJGL 2.9.1 and im getting this error. I've included the libraries and natives in the netbeans library manager.

The jars and dll's are stored

"C:\Users\Tom\Documents\NetBeansProjects\LWJGLTest\lib\natives"

"C:\Users\Tom\Documents\NetBeansProjects\LWJGLTest\lib\jars"

I've went into the VM Options and added this line as instructed on other Q&As but still no help :(

Djava.library.path="C:\Users\Tom\Documents\NetBeansProjects\LWJGLTest\lib\natives"

I've also tried without the quotation marks

Djava.library.path=C:\Users\Tom\Documents\NetBeansProjects\LWJGLTest\lib\natives


Solution

  • Accordingly to rmail2006's comment, I've made it works following these steps:

    Go to project properties -> Run, and edit "VM Options":

    -Djava.library.path="/path/to/your/lwjgl/lib/natives/macosx"