java - In Eclipse, my exported executable jar doesn't do anything ! (LWJGL) -
java beginner here.
i made small java app in eclipse (on windows), using lwjgl lib , slick. when export executable .jar file, , run resulting .jar, doesn't anything. no errors, no nothing - doesn't seem run. following tutorial : http://www.cs.bsu.edu/homepages/pvg/misc/slick_eclipse_tutorial.php
here's manifest.mf file looks :
manifest-version: 1.0 main-class: simpletest class-path: lib/lwjgl.jar lib/slick.jar
apps don't use lwjgl export fine. doing wrong ?
i tried using jarsplice, didn't work, though might misusing it. pointers ?
my best bet missed reference main-class
in manifest
-file.
have @ this shows how set manifest
-file correctly.
have fun!
edit:
manifest-version: 1.0 main-class: simpletest class-path: lib/lwjgl.jar lib/slick.jar <-- new line without content -->
edit 2:
ok, able reproduce behavior. tried run exported jar via console i've got following exception:
exception in thread "main" java.lang.reflect.invocationtargetexception ... caused by: java.lang.unsatisfiedlinkerror: no lwjgl in java.library.path ... ... 5 more
after doing researches found out hardly possible package native dll's executable jar.
clarify, i've found 3 options:
- just export jar runnable jar within eclipse , after place in folder containing native dll's (checked this, worked setup tutorial)
- at execution extract dll's in temporary directory mentioned here
- or use one-jar project lets create runnable jars native libraries
hope solved problem. cheers!
Comments
Post a Comment