Eclipse-无法执行现有代码,依旧执行以前的代码

来源:互联网 发布:滴滴查评星软件下载 编辑:程序博客网 时间:2024/05/17 08:59
我曾经在不同的公司,不同的电脑,遇见过两次相同奇葩的解决办法首先要保证Eclipse中有3点设置正确1.Project-build automatical 打勾2.Window-Preferences-General-Workspace-右侧的“Save automatical before build” 打勾3.Window-Preferences-Run/Debug-Launching-右侧的“Save required dirty edits before launching”下的“Always”打勾如果上述还不行,那么请在你的代码中的任意位置写System.out.println("XXX");然后保存,运行....我至今不知道为什么要随便找个位置写System.out,然后Eclipse才能更新并且运行现在的代码
原创粉丝点击