|
You must not have named the class the same as your filename. Remember case matters. Regardless of what you named the file, you can run it with the command:
java CLASSNAME
where CLASSNAME is the identifier you used after class in your program. Another way to know is to see what the name of the .class file that javac created for you is named. That (without the .class extension) is what you want to use.
Jon
|