Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse is not showing compilation errors in project explorer

Tags:

java

eclipse

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

like image 692
ajkush Avatar asked Oct 26 '12 11:10

ajkush


People also ask

Why is my Eclipse not showing errors?

You need to open the eclipse Markers view ( Window->Show View->Markers ), it will show all errors about your project, if you correct all the errors, your problem will most likely be solved.

How do I fix package explorer in Eclipse?

You could try holding down Ctrl + F7 to see a list of all views, then up/down arrow to the View. If Package Explorer is in the list it has been minimised or something. If you select it and still can't see it, try Window → Reset Perspective... to restore all views to their defaults.


1 Answers

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.

like image 61
Jainendra Avatar answered Sep 21 '22 18:09

Jainendra