javac is a bit glitchy when you type exactly what you typed. You provided the -classpath switch, but didn't give it a value. It quietly fails when you do this.
And Gregg:
You should *absolutely* always use -classpath when compiling. There have been numerous discussions about this, most of them along the lines of "classpath, why do you hate me so?"
I highly recommend -classpath. It solves many problems. When people say "Just say no to CLASSPATH" they mean the system classpath setting.
By default though, include the dot directory.
javac -classpath . foo.java