Hello everyone!
I'm in a bit of a quandary regarding my first shot at programming in
Java! I've purchased the Head First Java book and I'm real excited about it, but I've already run into a small problem. I tried creating and running the MyFirstApp application, but when I attempted to run it, I got the following error: Exception in
thread "main" java.lang.NoClassDefFoundError: MyFirstApp
All I can tell you is that when I ran the javac compiler, I was able to successfully create a .class file from the .java file, which suggests to me that I've installed Java correctly and that I've successfully added the appropriate location (bin folder) to my Path variable. Maybe such is not the case though or maybe that has nothing to do with it. I can also tell you that when I type java -version, I get 1.5.0_05 returned, which I suppose is okay but I'm not sure. Any help to this newbee would be greatly appreciated.