What kind of error message do you get? (Word af advice: Don't just say "it doesn't work" or "it doesn't start", say specifically what you're doing, what you expect to happen, and what actually happens, including all error messages.)
Is the current directory part of the classpath? Maybe you need to type "java -classpath . myprogram"