游戏无法开始将slick2D用于Java

时间:2019-05-30 12:39:05

标签: java lwjgl slick2d

我正在使用slick2D创​​建一个新的应用程序游戏。每当我单击“运行”时,该应用程序似乎都无法启动

public static void main(String[] args) throws SlickException {
        AppGameContainer app =  new AppGameContainer(new Main("Shadow Build"));
        app.setDisplayMode(800, 600, false);
        app.start();
    }

这是单击运行时显示的内容

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.lwjgl.DefaultSysImplementation.getPointerSize()I
    at org.lwjgl.DefaultSysImplementation.getPointerSize(Native Method)
    at org.lwjgl.Sys.<clinit>(Sys.java:118)
    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 shadowbuild.Main.main(Main.java:34)

0 个答案:

没有答案