title: Error when using LogManager (l4j2) with Java 8 (java.lang.reflect.AnnotatedElement cannot be resolved)
body: <p>I just encountered a strange error when switching the JDK version of a new Project of mine from 7u45 to 8u20. A harmless LogManager declaration at the beginning of my class is being refused with the following error:</p>
  
  <blockquote>
    <p>The type java.lang.reflect.AnnotatedElement cannot be resolved. It is indirectly referenced from required .class files</p>
  </blockquote>
  
  <p>This is the code:</p>
  
  <pre><code>public class Class1 {   
      private static Logger log = LogManager.getLogger(Class1.class); 
      ...
  </code></pre>
  
  <p>Eclipse proposes me to configure the build path, but I have no Idea what to configure because I don't know the underlying problem of that error. </p>
  
  <p>Using the JDK with version 7, everything works fine. </p>