一个编译错误
编译一个很简单的程序,只调用一个叫MainWindow的类,环境变量已设置好,第一次编译成功.因为是初学者,兴奋之余再次编译,结果出现错误如下(cmd):
cannot access MainWindow
bad class file c;\javabook\MainWindow.class
class file contains wrong class: javabook.MainWindow
Please remover or make sure it appears in the correct subdirectory of the class path
原以为是MainWindow类文件损坏,但重新覆盖原文件后错误依旧,请前辈们指教