I’ve made a game which runs perfectly fine in Eclipse, but doesn’t work with CMD.
I can compile the file, but whenever I try to run it through CMD, it says “Error: Could not find or load main class Game” (Game is my main class). I tried using CMD with this simple program:
public class Test() {
public static void main(String[] args) {
System.out.println("Test");
}
}
And it worked. I got the output “Test” in my CMD.
(My game contains more than one class. Four, to be exact.)