When I try to run my runnable jar file, it wont do anything. And when I try to run it from the console, it says "java.lang.UnsatisfiedLinkError: no LWJGL in java.library.path..."
How do I fix this?
I've specified the path by properties > Libraries > lwjgl.jar > Native Library Location > .... And I chose the right paths. But I still get that java.lang.UnsatisfiedLinkError.
It says I'm getting an error on line 34 which is:
appgc = new AppGameContainer(new Game(gamename));
My whole main class is:
package net.battleboy; import org.newdawn.slick.*; import org.newdawn.slick.state.*; public class Game extends StateBasedGame { public static final String gamename = "Battle Boy 1.0 ALPHA"; public static final int menu = 0; public static final int play = 1; public static final int settings = 2; public Game(String gamename) { super(gamename); this.addState(new Menu(menu)); this.addState(new Play(play)); this.addState(new Settings(settings)); } public void initStatesList(GameContainer gc)throws SlickException { this.getState(menu).init(gc, this); this.getState(play).init(gc, this); this.getState(settings).init(gc, this); this.enterState(menu); } public static void main(String[] args) { AppGameContainer appgc; try { appgc = new AppGameContainer(new Game(gamename)); appgc.setIcon("res/icon.png"); appgc.setDisplayMode(840, 470, false); appgc.start(); }catch(SlickException e) { e.printStackTrace(); } } }