Eclipse在项目资源管理器中没有显示编译错误 [英] Eclipse is not showing compilation errors in project explorer

查看:93
本文介绍了Eclipse在项目资源管理器中没有显示编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse Juno与Java 1.7,我已经创建了一个测试项目。现在的问题是项目资源管理器。如果类有任何错误,项目资源管理器不会显示编译错误。
我清理,关闭并重建项目,但没有任何改变。在项目浏览器中仍然没有显示错误。它与Helios正常工作。

解决方案

如您在项目浏览器中所见,您的项目名称中有一个 RED感叹号,这意味着项目中的构建路径存在问题。请参阅此处更多细节。



通过右键单击项目并选择构建路径 - >配置构建路径,检查项目的构建路径。
我经常遇到的一个问题是不同的人使用不同的Java SDK,因此当您的机器中没有可用的SDK时,您需要更改到您的Java SDK(通过 JRE系统库 - > ;备用JRE )。避免此问题的更好方法是始终从Workspace默认JRE或执行环境中选择JRE系统库。


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.

解决方案

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.

这篇关于Eclipse在项目资源管理器中没有显示编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆