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:

  1. just export jar runnable jar within eclipse , after place in folder containing native dll's (checked this, worked setup tutorial)
  2. at execution extract dll's in temporary directory mentioned here
  3. or use one-jar project lets create runnable jars native libraries

hope solved problem. cheers!


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -