My LWJGL and Slick2d applications will not start from jar executable

I use LWJGL and Slick2d. I created a project and it works fine within an eclipse, but when I export it as a jar executable, it does nothing. I tried to run it from the command line and this gives me this 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.<clinit>(Sys.java:112)
    at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
    at net.<My Package>.game.<My Main Class>.start(<My Main Class>.java:26)
    at net.<My Package>.game.<My Main Class>.main(<My Main Class>.java:75)

I have tried every article I read about export. I saw the distribution of your LWJGL application , but nothing works. I edited the class line in the MANIFEST file and it does not work. One thing that I should note is that when I export, it gives me a warning:

This operation repacks referenced libraries.
Please review the licenses associated with 
libraries you wish to reference to make sure you 
are able to repack them using this application. 
Note also that this operation does not copy 
signature files from original libraries to the 
generated JAR file.

And I just clicked OK.

, , . .
. .

+4
2

, - . , .

  • -Djava.library.path=path_to_"lwjgl.dll"_directory (, -Djava.library.path=C:/programs/myprogram/natives).
  • . , cd new_dir_here. .

  • .bat, , .

  • Launch4j. . Change dir: lwjgl.jar lwjgl.dll , .exe. .
+2

, , . Jarsplice , .

0

All Articles