Eclipse error: java.util.Enumeration cannot be resolved

August 27th, 2009 in Eclipse Errors, Errors. 1 comment
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

Problem: you get an error during build saying “Build error java.util.Enumeration cannot be resolved” even though you have the correct import statement.
Solution: Set the compiler compliance level to 1.4 (window->preferences->Java->compiler) and rebuild.
compilercompliance1 Eclipse error: java.util.Enumeration cannot be resolved

Tags: ,

One Response to “Eclipse error: java.util.Enumeration cannot be resolved”

  1. neelam at
    says:

    hi ,
    Just replace keyword enum with any other name. As its a keyword in 5.0 and above. You cant use it as identifier.

    :)

Leave a Reply

Sponsors