Do you have a package statement at the top of your program? I would agree that you probably need to read the tutorial and a beginner's java book. I'm not trying to be mean, but you're "Hello World" program is now a 10 post (and probably more coming)
thread.
You should focus at how 'javac' and 'java' works, how java works in an
IDE and through a command line. I would also suggest that you focus your reading on how the CLASSPATH variable works. Please feel free to ask more questions, but also take a little initiative to find the answer before asking. It's not that we don't want to answer you (we do), but "where to find the answer" is one of the most important aspects of being a successful developer. Good luck!