Thread: Java help
View Single Post
Old 09-21-05, 12:10 AM   #8 (permalink)
JonMisurda
Guest
 
Posts: n/a
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
  Reply With Quote