Hi, I'm trying to create a game using the LWJGL library and the Slick2D game library, but when I try to start it, I get an error message. Here is my code:
package test;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
public class SetupClass extends BasicGame {
public SetupClass(String title) {
super(title);
}
@Override
public void init(GameContainer container) throws SlickException {
}
@Override
public void update(GameContainer container, int delta) throws SlickException {
}
@Override
public void render(GameContainer container, Graphics arg1) throws SlickException {
}
public static void main(String[] args) throws SlickException {
AppGameContainer app = new AppGameContainer(new SetupClass("Setup Test"));
app.setDisplayMode(800, 600, false);
app.start();
}
}
And this is the error I get when it starts:
Error: Could not find or load main class path>.native.<macosx>
Although there are no errors inside the code before running, and I donβt know where I should look for a fix, as this seems like a path error. Thank.
source
share