Eclipse Problems View doesn't show Errors

后端 未结 11 1827
[愿得一人]
[愿得一人] 2021-01-17 08:35

[Note: There is another thread about this problem but it did not answer the question.]

For one specific project in Eclipse, the problems view does not show errors. I

相关标签:
11条回答
  • 2021-01-17 09:30

    I had the problem where in the red cross icon by the file name did not appear. I tried all possibilities described on this question. However, the root cause in my case was, I deleted a jar file from SVN. So the java file using the imports from this jar had errors. Surprisingly that didn't show up.

    Looking at the build path, I found under Java Build Path -> Libraries -> jar (missing). Having removed it from the build path, the red icon next to the file showed up !! Excruciating it was to find this error and wasting so much time, I wonder why this icon does not show up nor does Problem view report it.

    0 讨论(0)
  • 2021-01-17 09:33

    I want to post my story here if Google brings you to this question.

    Somehow, "Project->Build Automatically" got turned off.

    Turning it back on produces correct errors list.

    I've tested that this is the case as far as Ganymede ( at the point of writing this post I am running Indigo )

    0 讨论(0)
  • 2021-01-17 09:34

    I checked the .classpath file of the Eclipse project. It had incorrect value of src so it was pointing to the wrong source of Java files.

    My files incorrect entry:

    <classpathentry kind="src" path="src"/>
    

    I changed it to the correct entry:

    <classpathentry kind="src" path="source/java"/>
    

    Now it is working.

    0 讨论(0)
  • 2021-01-17 09:36

    I am a newbie to STS, and I had a similar problem. Errors weren't showing up until I saved the file. I discovered it was because I was using the Text Editor, instead of the Java Editor.

    0 讨论(0)
  • 2021-01-17 09:37

    This was my problem: http://solveme.wordpress.com/2009/01/06/eclipse-project-missing-default-java-builder/

    0 讨论(0)
提交回复
热议问题