• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception in thread "main" Please help.

 
Michael Baca
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic