选择一:
1.删除PackageTest.java和ImportTest.java中packagecom.yeahgenius.test这句申明,2.输入setclasspath=c:\Study\Lesson3;%classpath%;然后输入cdc:\Study\Lesson3进入根目录下3、输入javacPackageTest.java4、输入javacImportTest.java5、输入javaImportTest选择二:输入mkdircomcdcommkdiryeahgeniuscdyeahgeniusmkdirtestcdtestcopyc:\Study\Lesson3\PackageTest.java.copyc:\Study\Lesson3\ImportTest.java.setclasspath=c:\Study\Lesson3;%classpath%javacPackageTest.javajavacImportTest.javajavaImportTest