I looked at some other SO issues, didn't find anything that solved my problem ... I have a Main.java file (below) and an OthelloLib.jar file without associated source files.
Startup javac Main.javafails
Main.java:8: cannot find symbol
symbol: class SimplePlayer
location: class Main
OthelloPlayer p1 = new SimplePlayer ();
and a few more mistakes. SimplePlayer and BetterPlayer are defined in the bank. How do I talk about java about this bank? This command: javac -classpath .:OthelloLib.jar -g Main.javadoes not cause an error, but I still do not know how to start the program. If I run java -classpath .:OthelloLib.jar Main, java complains:Exception in thread "main" java.lang.NoClassDefFoundError: TimeoutException
but TimeoutException.java is in the same directory as Main.java.
I don’t know where to look for basic Java material, like this!
public class Main {
public Main() { }
public static void main(String[] args) {
OthelloPlayer p1 = new SimplePlayer();
OthelloPlayer p2 = new BetterPlayer();
OthelloObserver o = new OthelloSimObserver();
OthelloGame g = new OthelloGame(p1, p2, o);
System.out.println("Starting game");
g.run();
}
}