Reputation: 3081
Error
Exception in thread "main" 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.Sys$1.run(Sys.java:73) at java.security.AccessController.doPrivileged(Native Method) at org.lwjgl.Sys.doLoadLibrary(Sys.java:66) at org.lwjgl.Sys.loadLibrary(Sys.java:95) at org.lwjgl.Sys.(Sys.java:112) at org.lwjgl.opengl.Display.(Display.java:132) at ColoredTriangle.start(Test3d.java:12) at Test3d.main(Test3d.java:71)
I added jar and native library. still its not working. i dont know why. image attached
How to fix it?
Upvotes: 1
Views: 564
Reputation:
I don't undestand how this solution worked. But just add this in the start of the main function or something.
System.setProperty("org.lwjgl.librarypath", new File("Path to library/natives/youros").getAbsolutePath());
Note: I got this solution from somewhere else.
Upvotes: 0
Reputation: 91
Re-try doing it, also maybe there's so something wrong with your path setup, try doing it with this: http://lwjgl.org/wiki/index.php?title=Setting_Up_LWJGL_with_Eclipse
Upvotes: 0