当你修改过代码后,myeclipse往往要你手动的保存代码才能运行这个修改后的代码,要是不保存就会一直运行修改前的代码。只要修改myeclipse中这两项,就可以让它编译运行修改后的代码:
Window -> Preferences -> General -> Workspace -> “Save automatically before build”
Window ->Preferences -> Run/Debug -> Launching -> “Save require dirty editors before launching”