Eclipse does not affect source code changes

I have a strange problem in Eclipse Helios. When I change the source code, my changes do not affect. Even if I change the code in a way that looks incompatible, it can still be run.

It seems that Eclipse keeps its state somewhere in the background, while I edit and save my sources and pass them svn.

I donโ€™t know what settings to look for or what else to do. I would be glad to receive any help.

Regards, David

+19
source share
8 answers

Note. Try this only if you have run out of other options in this thread.

So just in case, if other options, such as clear / rebuild listening in other answers, do not solve the problem, do the following:

Close eclipse Go to the project folder on your hard drive. Delete the .metadata file, restart Eclipse, and visit the workspace again. The classpath and libraries will be re-checked and the project reassembled.

+15
source

In the Project menu, make sure that "Automatically installed."

+9
source

I had the same problem when starting a Maven project in Spring Tool Suit (which is based on Eclipse). I had to clean and build the maven project every time so that STS would detect new changes (which is obviously a slow and inefficient process).

So my solution was:

Press Alt + F5 and check Forced snapshots / releases update

+5
source

As mentioned above, check the Build Automatically checkbox in Project->Build Automatically , then clear the project so that your changes are compiled again.

+3
source

First try (re) creating or saving.

0
source

This is on Eclipse (Kepler). A simple "Hello World" in Java, where the text changes in println, where it does not appear in the console when executed or restarted (Build was automatically checked). When doing the second restart (or saving the .java 1st file), it always showed changes in println.

Kristian

0
source

Try making small changes to the JSP file. Sometimes your Tomcat server contains old cache files that it uses, even if CLEAN BUILD is your project. Adding updates to JSP files helps Tomcat deploy the JSP file with the changes, rather than using old cache files. I ran into a similar problem that was resolved in the same way. Thanks Recent changes not reflected in the servlet (tomcat)

0
source

Just go to "Project-> Auto Build" and check that everything

0
source

Source: https://habr.com/ru/post/909696/


All Articles