Add "." to your classpath. You'd better change it in autoexec.bat or change the environment variable "CLASSPATH"for now, try this
c:>set classpath=.;%classpath%
c:>java myjava
c:>set classpath=.;%classpath%
c:>java myjava
BTW:一个好的习惯就是把类名第一个字母大写
MyJava
1.Classpath没有正确设置,建议你在使用的时候专门建一个学习目录,然后在classpath里面把它包括进去
2.要注意Java的大小写问题
3.Java文件的名称和你在代码里面定义的名称要一致,比如,你在某个Java文件里面写了一个Hello类,那么你就把它保存成Hello.java,而不要保存成myjava.java