jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes Exception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Exception in thread "main" Please help." Watch "Exception in thread "main" Please help." New topic

Exception in thread "main" Please help.

Michael Baca

Joined: May 27, 2004
Posts: 17
Not sure what I'm doing wrong, but I keep getting this error when trying to run my program from source as in java GameLauncher.java:

Exception in thread "main" java.lang.NoClassDefFoundError: GuessGame
at GameLauncher.main(GameLauncher.java:4)

Here is the code for GameLauncher.java:

And from GuessGame.java:

And just in case from Player.java:

This is from the book Head First Java 2nd Edition. The book suggests(?) I use: jave GameLauncher.java to run it. Compiling gives me errors about an unresolved symbol on the three lines with guessp# = p#.number; reffering to the . just before number... Any ideas?
I agree. Here's the link: http://aspose.com/file-tools
subject: Exception in thread "main" Please help.
Similar Threads
Very new to java
GuessGame Errors From Head First Java
Head First Java Book, Chapter 2
Please Help with Guessing Game (Head First Java)
GuessGame errors