There may be one of a few things wrong. Try doing the below, in order.
- Use the command line argument
-Djava.library.path=path_to_"lwjgl.dll"_directory
(e.g.-Djava.library.path=C:/programs/myprogram/natives
) when running the jar. Change the directory. In command prompt, this can be accomplished by typing
cd new_dir_here
. More info here.Create a
.bat
file that contains the command line arguments you used.- Use Launch4j. Put
.
in theChange dir:
field, and putlwjgl.jar
andlwjgl.dll
in the same folder as the generated.exe
file. This is how I solved my problem.