網上很多方法, 又重啓編譯器又clear的, 都沒好使。
實際上是因爲項目執行前沒有自動保存, 而單單勾選project 中的 build automatically是沒有用的 。
將項目先save 一下, 執行就可以了。
當然還是自動保存比較方便。
Windows-> preferences->run/debug>launching->save required dirty editors before launching
Windows-> preferences->General->Workspace->save
automatically before build