Java Code not properly updating
Have you tried cleaning the project?
Project(menu) -> clean
Also make sure
Project(menu) -> Build Automatically
is selected so that all new code you write is compiled then and there
If the clean and build doesn't work, it's possible that there is a jar file contains the class you edited, so the eclipse will run the compiled class file in the jar instead of your current file.
There are two possibilities because of which the java code is not updating properly:
- Project -> Build Automatically is not checked
In
.project
file of Projectorg.eclipse.jdt.core.javabuilder
build command is commented or missing. Here the below mentioned piece of code should not be commented:<buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments></arguments> </buildCommand>