I recently started making a game in eclipse, installed everything according to the guide but this error pops up.
error text:
Error: Could not find or load main class java
Caused by: java.lang.ClassNotFoundException: java
image
Arleady tried to reinstall java
The only thing i didn't tried is lauching it from cmd because I didn't understand the structure that Eclipse does.
The problem is that i don't have any class named "java", it may be predefined class so i have no idea why JVM can't find it
Any thoughts how to fix it?
code(single file):
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 GameClass extends BasicGame {
public GameClass(String title) {
super(title);
}
public void init(GameContainer container) throws SlickException {
}
public void update(GameContainer container, int delta) throws
SlickException {
}
public void render(GameContainer container, Graphics g) throws
SlickException {
g.drawString("Helle World!", 56, 50);
}
public static void main(String[] args) throws SlickException {
AppGameContainer app = new AppGameContainer(new GameClass("Setup Test"));
app.setDisplayMode(800, 660, false);
app.start();
}
}
Run as -> Run configuration -> java application -> arguments and i put
java -Djava.library.path=<C:\Users\user\Downloads\slick>(libraries location) in VM arguments field
other setting i did was in Dependencies tab
UPD:
Main tab
Dependencies tab