Results 1 to 2 of 2
  1. #1
    Epicballzy is offline Member
    Join Date
    May 2014
    Rep Power

    Default Slick2D Runnable Jar Not Running (java.lang.UnsatisfiedLinkError)

    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:
    Java Code:
    appgc = new AppGameContainer(new Game(gamename));
    My whole main class is:
    Java Code:
    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) {
    		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);
    	public static void main(String[] args) {
    		AppGameContainer appgc;
    		try {
    			appgc = new AppGameContainer(new Game(gamename));
    			appgc.setDisplayMode(840, 470, false);
    		}catch(SlickException e) {
    Last edited by Epicballzy; 05-04-2014 at 06:28 AM.

  2. #2
    minibutmany is offline Member
    Join Date
    Oct 2014
    Rep Power

    Default Re: Slick2D Runnable Jar Not Running (java.lang.UnsatisfiedLinkError)

    You may have to create a "fat jar" using JarSplice.

Similar Threads

  1. Replies: 0
    Last Post: 04-30-2013, 09:43 AM
  2. NTEventLogAppender java.lang.UnsatisfiedLinkError
    By vyasvalluri in forum New To Java
    Replies: 2
    Last Post: 02-04-2013, 11:43 AM
  3. java.lang.UnsatisfiedLinkError: mqjbnd05
    By sasi25 in forum Advanced Java
    Replies: 1
    Last Post: 12-30-2009, 05:48 PM
  4. java.lang.UnsatisfiedLinkError
    By sunil.mact in forum Advanced Java
    Replies: 4
    Last Post: 03-03-2009, 06:36 PM
  5. java.lang.UnsatisfiedLinkError: JAWT_GetAWT()
    By Albert in forum AWT / Swing
    Replies: 2
    Last Post: 07-01-2007, 05:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts