Search code examples
javaeclipseeclipse-neon

Eclipse editor not showing error markers


My eclipse is not showing error in its file editor. I have tried cleaning and putting project on Build Automatically. However when I run it then I do see the compiler error in console and also in problem view just after saving the file. Does anyone have any idea how to fix this ?

Eclipse Screenshot after saving changes: line 43

This is the version of my eclipse:

Eclipse IDE for Java Developers Version: Neon.2 Release (4.6.2)

Adding more images: enter image description here

enter image description here


Solution

  • Check the Build Path of the project by right clicking the project and select Build Path -> Configure Build Path.

    JDK is not properly configure for project. Configure your JDK instead of in-build JRE.

    Also make sure your source folder is also configure in Build Path (for example MyProject/src) must listed as a Source folder.

    In Java Compiler-->Errors/warning, click Restore Default.

    Make sure "Build Automatically" is checked.