views:

194

answers:

1

I would usually get this message when I was importing or creating a new project. Everything would build fine but the compiler would give me a "Enumeration cannot be resolved" error for all Enum classes/objects.

I resolved this by changing compliance from Java 5 to Java 1.4, since Enumeration was added in Java 5 which was not there in Java 1.4.

A: 

As mentioned in the myeclipse forum, changing the compliance is one solution.

You can also:

  • make sure your declared jre is an 1.4 one (again, with the right target "1.4 compliance" in the properties dialog)
  • or use the default 1.5 one but change any 'enum' in your code, since 'enum' is a keyword in Java5. (like "rename variable" suggestion in this thread)
VonC
Thx. Add these two to the one I mentioned, if you will, they are helpful :)
orezavi