Hi I'm trying to create a game using the LWJGL library and the Slick2D game library however when I attempt to run it I get an error. 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);
// TODO Auto-generated constructor stub
}
@Override
public void init(GameContainer container) throws SlickException {
// TODO Auto-generated method stub
}
@Override
//Delta is the amount of time that has passed since the last update
public void update(GameContainer container, int delta) throws SlickException {
// TODO Auto-generated method stub
}
@Override
public void render(GameContainer container, Graphics arg1) throws SlickException {
// TODO Auto-generated method stub
}
//need to handle throwing slick exception so we handled it through main throwing slickexception
public static void main(String[] args) throws SlickException {
//Create a new game container named app under a new SetupClass named Setup Test
AppGameContainer app = new AppGameContainer(new SetupClass("Setup Test"));
//arguments 1 and 2 are resolution of window by height and width
//3rd argument is the boolean determining whether it is full screen
app.setDisplayMode(800, 600, false);
//Start the app
app.start();
}
}
And this is the error I get when running it:
Error: Could not find or load main class path>.native.<macosx>
Though no errors come up inside the code before running, and I don't know where I should look to fix this as it appears to be a path error. Thanks.