problem using enums

I’m using eclipse and Java 6 and I if I try to create an enum class or an annotation it tells me that the project is not JDK 5.0 compliant. Does this mean that JDK 6 does not support either of those? Or if it still does support them (it seems odd to me that it wouldn’t), what can I do to solve this problem?

EDIT: I just solved the problem. I had to set the project to be JDK 5.0 compliant when I first created it and things work fine now.