This is a class path problem. The class path let's Java know where to locate classes for your file. Post the command that you are using to run the program and a bit of directory information on where that class file resides.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
Are you running that command from directory which contains that class? Is there a package declaration in that class?
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
Ok, it actually looks you may just have a case-sensitivity issue with your names. If the class is called HelloWorldApp, it must reside in a file of that exact case-sensitive name. You must use the same case-sensitive name when you run it. "helloworldapp" is not the same as "HelloWorldApp".
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
Are you using an IDE to create your files or just notepad? If you are using an IDE, it looks like it has placed a "package helloworldapp" statement at the top of your source file. Packages are basically directories to group sets of classes together. Because of that package statement, Java expects that class to reside in the "helloworldapp" directory. It would need to be run from the directory above "helloworldapp" with the following command:
java helloworldapp.HelloWorldApp
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
Ok, that is because you are stuck right in the middle of things that Netbeans does to organize files in a project, which you do not yet understand, and you are trying to follow the simple notepad and command line tutorial. Either use the Hello World tutorial for Netbeans http://java.sun.com/docs/books/tutorial/getStarted/cupojava/netbeans.html or stick to the steps in the basic tutorial for Windows that you linked. Mixing the two of them is just going to cause you confusion at this point.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847