In Eclipse, the changes of my source code have no effect

Note : Please try this only if you have run out of other options in this thread.

So Just in case the other options like clean/rebuild listen in the other answers, do not address the problem do the following,

Close eclipse Go to the project folder on the hard drive. Delete the .metadata file and restart eclipse and revisit the workspace. The class path and libraries will be re validated and the project fresh built.


In the Project menu, verify that Build Automatically is checked.


I was having the same problem while running a Maven project in Spring Tool Suit (which is based on Eclipse). I needed to clean and build the maven project every time to make the STS detect the new changes (what is obviously a slow and inefficient process).

So my solution was:

Pressing Alt+F5 and check Force update of Snapshots/Releases


As mentioned before verify your Build Automatically option in Project->Build Automatically, then clean the project so your changes will be compiled again.

Tags:

Java

Eclipse