Search code examples
javalwjgl

java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path but natives are set


I understand that this question has been asked before, yet no matter how many solutions I try, I still get the following error:

Exception in thread "Game" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at org.lwjgl.system.Library.loadSystem(Library.java:97)
    at org.lwjgl.system.Library.<clinit>(Library.java:48)
    at org.lwjgl.system.MemoryAccess.<clinit>(MemoryAccess.java:22)
    at org.lwjgl.system.Pointer.<clinit>(Pointer.java:22)
    at org.lwjgl.glfw.GLFW.<clinit>(GLFW.java:594)
    at Main.init(Main.java:27)
    at Main.run(Main.java:39)
    at java.lang.Thread.run(Unknown Source)

The problem is that I have properly set my Natives: Properties Dialog

This is the location folder:

enter image description here

I have just downloaded LWJGL and would like help in order to make it work.

Thanks in advance!


Solution

  • It turns out that my anti-virus is deleting LWJGL.