Could not find the main class: Hello. Program will exit.
I've read the other threads on this issue and none of the suggestions seem to work. I wrote the standard issue "Hello.java" source file and complied it using NetBeans. When I run it in NetBeans it outputs the string as expected.
When I navigate to the directory where Hello.class resides and issue the command: java Hello I get the error message "Could not find the main class..."
I tried java -classpath . Hello: same result
I tried java -cp . Hello: same result
Then I navigated to the folder where Hello.java resides and compiled it with the javac command and it created Hello.class in the same folder as expected. However when I enter java Hello i still get the error.
I'd appreciate some help. I am absolutely brand new to Java but I have over a decade of programming experience in SQL Server, Visual Basic, and C++. I don't understand why I can't get this to run.