Packaging files to run on other computers

I read around the forums and found FatJar, so i installed that and used it, however when i trying to run it i get a noclassdef error, i think it has something to do with the lib so i read some more and found out that i needed the lwjgl dll and jars, so i made a folder called lib and put it in there, now my run.bat is


java -Djava.library.path="./lib/" -jar SpaceArena.jar
pause



i still get the same erorr


any idea on how to do this?

looks like you don't have lwjgl.jar in your classpath.

use the -cp parameter when starting java and specify all the jars you need in the classpath.