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

    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) {
    		
    		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();
    		}
    		
    	}
    }
    Last edited by Epicballzy; 05-04-2014 at 05:28 AM.

Similar Threads

  1. Replies: 0
    Last Post: 04-30-2013, 08:43 AM
  2. NTEventLogAppender java.lang.UnsatisfiedLinkError
    By vyasvalluri in forum New To Java
    Replies: 2
    Last Post: 02-04-2013, 10:43 AM
  3. java.lang.UnsatisfiedLinkError: mqjbnd05
    By sasi25 in forum Advanced Java
    Replies: 1
    Last Post: 12-30-2009, 04:48 PM
  4. java.lang.UnsatisfiedLinkError
    By sunil.mact in forum Advanced Java
    Replies: 4
    Last Post: 03-03-2009, 05:36 PM
  5. java.lang.UnsatisfiedLinkError: JAWT_GetAWT()
    By Albert in forum AWT / Swing
    Replies: 2
    Last Post: 07-01-2007, 04: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
  •