Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

I can't import enums for some reason

843789May 17 2009 — edited May 17 2009
In a class I made, I can't seem to import an enum. Eclipse tells me "The import de.game.ground.Constants.Board cannot be resolved." Board is the name of my enum sitting in the class Constants.

What's so weird is that other classes have imported the enum and are using it just fine. But for some reason this one class won't. These classes are all in the same packet. What's up with that? It makes no sense to me that other classes can import it, but I get an error message trying to import it to this class.

After some googling, I tried adding import java.util.*, even though the other classes didn't need it, but that didn't seem to make a difference. I also made sure my "compiler compliance" is set to 1.6. I can't think of anything else to try.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2009
Added on May 17 2009
3 comments
793 views