File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Exception in thread "main" Please help." Watch "Exception in thread "main" Please help." New topic
Author

Exception in thread "main" Please help.

Michael Baca
Greenhorn

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
GuessGame Errors From Head First Java
GuessGame errors
Head First Java Book, Chapter 2
Please Help with Guessing Game (Head First Java)
Very new to java