title: The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
body: <p>I am writing a simple Java program on Eclipse. </p>
  
  <pre><code>import java.util.HashMap;
  
  public class Demo {
      public static void main(String[] args) {
          HashMap&lt;String, String&gt; hash = new HashMap();
      }
  }
  </code></pre>
  
  <p>The above program generates the following errors.</p>
  
  <ol>
  <li>The project was not built since its build path is incomplete. Cannot find the class file for java.util.Map$Entry. Fix the build path then try building this project.</li>
  <li>The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files.</li>
  </ol>
  
  <p>I searched over the internet almost everywhere, but I was not able to correct this.</p>
  
  <p>I have installed Java SE 8u5 (JDK) (<a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=otnjp">http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=otnjp</a>)</p>
  
  <ol>
  <li>Windows -> Preferences -> Installed JREs shows</li>
  </ol>
  
  <p>a) jdk       C:\Program Files\Java\jdk</p>
  
  <ol>
  <li>Project -> Build Path -> Libraries shows</li>
  </ol>
  
  <p>a) JRE system library (jdk)</p>
  
  <p>b) JRE system library (jre8)</p>
  
  <p>Please somebody help me.</p>
  
  <p><strong>EDIT:</strong> Changing Eclipse version from Helios to Juno solved the problem!</p>