I need to export a lwjgl 2 App from eclipse. I export the jar file (TS.jar), add the jars and natives to it with jarsplice (TS_FULL.jar), run the app from cmd with:
java TS_FULL.jar
and it says it cant find main class, strange given that at export time I checked "create manifest" and selected the correct main class, which is Main.Main. So I specify the main class with:
java -cp TS_FULL.jar Main.Main
This time it finds the main class but throws a:
UnsatisfiedLinkError: no lwjgl in java.library.path
I dont understand why this happens since I correctly added both jars and natives in the eclipse project setup, see attachement.
Any help would be appreciated, thanks.
EDIT: Ok so Im too tired to look into it right now, but apparently if I run
java -jar TS_FULL.jar
it runs fine. If I use
java TS_FULL.jar
it wont find the main class. If I run
java -cp TS_FULL.jar Main.Main
it will find the main class but wont find the lwjgl.dll. I dont know why, I will look into it. Anyway Im happy I solved it, partially at least. At least it works now.