I am writing a game in Java using the Slick2D 2D engine.
In the Eclipse IDE, the project works properly, and when building and running through File> Export, the Runnable JAR File doesn’t go beyond the main menu written in Swing - the native libraries obviously don’t load.
Despite the fact that all the .jar and .dll libraries in the archive were present, and there were a couple of tutorials at hand, attempts to manually register them in manifest / build.xml / classpath at various stages of assembly failed miserably.
I tried to download them in the source code through:
System.loadLibrary("lwjgl");
or
File lib1 = new File("lib/windows/lwjgl.dll"); System.load(lib1.getAbsolutePath()); Again, the IDE works like a clock, but the Runnable JAR is gone.