Frage von CaptainMimbl, 16

Java/Slick Game?

Das ist mein code: public class Game extends StateBasedGame {

public static final String gamename = "Java Game";
public static final int menu = 0;
public static final int play = 1;

public Game(String gamename){
    super(gamename);
    this.addState(new Menu(menu));
    this.addState(new Play(play));
}


public void initStatesList(GameContainer gc) throws SlickException{
    this.getState(menu).init(gc, this);
    this.getState(play).init(gc, this);
    this.enterState(menu);
}

public static void main(String[] args) {
    AppGameContainer appgc;
    try{
        appgc = new AppGameContainer(new Game(gamename));
        appgc.setDisplayMode(640, 360, false);
        appgc.start();
    }catch(SlickException e){
        e.printStackTrace();
    }
}

} und das ist meine Fehlermeldung dazu:

Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar

Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl64 in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)

at java.lang.Runtime.loadLibrary0(Runtime.java:849)

at java.lang.System.loadLibrary(System.java:1088)

at org.lwjgl.Sys$1.run(Sys.java:72)

at java.security.AccessController.doPrivileged(Native Method)

at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)

at org.lwjgl.Sys.loadLibrary(Sys.java:87)

at org.lwjgl.Sys.<clinit>(Sys.java:117)

at org.lwjgl.opengl.Display.<clinit>(Display.java:135)

at org.newdawn.slick.AppGameContainer$1.run(AppGameContainer.java:39)

at java.security.AccessController.doPrivileged(Native Method)

at org.newdawn.slick.AppGameContainer.<clinit>(AppGameContainer.java:36)

at javagame.Game.main(Game.java:28)
Antwort
von rmnstr, 10

Deine Library lwjgl64 ist nicht im Suchpfad eingestellt. Füge die Library einfach der IDE hinzu.

Keine passende Antwort gefunden?

Fragen Sie die Community