title: Can not compile enums in Eclipse
body: <p>While trying to introduce enums in my Android project in Eclipse, I encountered with the following problem:
  Compiler says:</p>
  
  <ol>
  <li>The type java.lang.Enum cannot be resolved. It is indirectly referenced from required .class files</li>
  <li>The type Enum is not generic; it cannot be parameterized with arguments </li>
  </ol>
  
  <p>I work under Ubuntu 10.04 and use Eclipse v.3.5.2. Tried to use both Java 6 OpenJDK and Java 6 Sun, but without success.</p>
  
  <p>Can anybody help me to sort out with this issue?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>public class MyClass {
  
    public MyClass() {
    }
  
    ...
  
    enum MyEnum {
      CONST1, CONST2, CONST3;
    }
  }
  </code></pre>