javac Teacher.java InitialTeacher.javaREM 编译后的.class要在yuan目录里面REM 所以,如果源码是存放在packge 所提的目录那就是这样编译REM javac yuan\*.javajava yuan.InitialTeacher