Eclipse is not showing compilation errors in proje

2020-05-21 23:56发布

I am using Eclipse Juno with Java 1.7 and i have created a test project. Now the problem is with project explorer. Project explorer is not showing compilation errors if class have any error. I cleaned, closed , and rebuild the project but nothing is changed. It is still not showing errors in project explorer.It was working fine with Helios. enter image description here

标签: java eclipse
10条回答
家丑人穷心不美
2楼-- · 2020-05-22 00:28

Have you checked Project/Build Automatically?

查看更多
Summer. ? 凉城
3楼-- · 2020-05-22 00:34

In eclipse you can right-click on a project and go Maven-->Update Maven Project and this will tell eclipse to update all of its local project settings (e.g. source and build paths) based upon the current pom.xml.

查看更多
闹够了就滚
4楼-- · 2020-05-22 00:35

Go to the eclipse project -> check the Build Automatically. It will solve the problem. I had the same issue and resolved like this.

查看更多
叛逆
5楼-- · 2020-05-22 00:37

You must check the build Path configuration to point for the appropriate /src sources java folders, perform a clean up of the eclipse project as well as a maven clean. I had the same issue.

查看更多
够拽才男人
6楼-- · 2020-05-22 00:39

I have faced similar kind of problem in Eclipse Photon. I have cleaned, updated and build the project but nothing was working. Then I figured out that I have disabled problem reporting in preferences. Here is what I did to resolve the issue :

Preferences-->>Editor--> Checked report problems as you type checkbox

查看更多
孤傲高冷的网名
7楼-- · 2020-05-22 00:40

As I can see in your project explorer there is a RED exclamation mark over your project name which means there is a problem with the build path in your project. See here for more details.

Check the Build Path of the project by right clicking the project and select Build Path -> Configure Build Path. One problem I often encountered is different people using different Java SDK and so when the exact SDK is not available in your machine, you need to change to your Java SDK (via JRE System Library -> Alternate JRE). A better way to avoid this problem is to always select the JRE System Library from Workspace default JRE or Execution Environment.

查看更多
登录 后发表回答