Hi, i am trying to setup LWJGL3 and have followed the instructions from "
https://github.com/LWJGL/lwjgl3-wiki/wiki/1.2.-Install" , "
http://wiki.lwjgl.org/wiki/Setting_Up_LWJGL_with_NetBeans.html" and "
https://stackoverflow.com/questions/40806793/how-do-i-add-lwjgl-3-1-1-to-netbeans-to-use-in-a-java-project" and have searched for solutions online but nothing seems to work.
I am using win 10x64, netbeans 11.3x64, JDK 14x64. The library is setup using the above mentioned instructions. The test code is from "
https://www.lwjgl.org/guide"
Following is the snapshot of the error.
run:
Hello LWJGL 3.2.3 build 13!
[LWJGL] Failed to load a library. Possible solutions:
a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
b) Add the JAR that contains the shared library to the classpath.
[LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
[LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll
at org.lwjgl/org.lwjgl.system.Library.loadSystem(Library.java:162)
at org.lwjgl/org.lwjgl.system.Library.loadSystem(Library.java:62)
at org.lwjgl/org.lwjgl.system.Library.<clinit>(Library.java:50)
at org.lwjgl/org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:97)
at org.lwjgl/org.lwjgl.system.Pointer$Default.<clinit>(Pointer.java:67)
at org.lwjgl/org.lwjgl.system.Callback.<clinit>(Callback.java:41)
at newmodule/newpackage.NewClass.init(NewClass.java:46)
at newmodule/newpackage.NewClass.run(NewClass.java:31)
at newmodule/newpackage.NewClass.main(NewClass.java:121)
C:\Users\waqas\AppData\Local\NetBeans\Cache\11.3\executor-snippets\run.xml:111: The following error occurred while executing this line:
C:\Users\waqas\AppData\Local\NetBeans\Cache\11.3\executor-snippets\run.xml:40: Java returned: 1
BUILD FAILED (total time: 0 seconds)