Originally posted by Scott Mahoney:
...java.lang.NoClassDefFoundError: game (wrong name: chap5/Game)..
First, Java is case sensitive, so "game" is not the same as "Game." But it also looks like your Game class is in a
package (and hopefully a directory) called "chap5."
In this case, the qualified name of the class is really
"chap5.Game" which is in the
parent directory of "chap5."
So to run this, set the current directory to the parent of the "chap5" directory, and then run with...
...Parent>
java chap5.Game