Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » "Enum cannot be resolved", "Enum is not generic" compiler errors
"Enum cannot be resolved", "Enum is not generic" compiler errors [message #326910] Thu, 03 April 2008 00:41 Go to next message
Eclipse UserFriend
Originally posted by: robert.infotility.com

Hello,

I am attempting to build (with Eclipse) a project which
successfully builds with ant + javac 1.5.0.

In a file which has some enums, I get some error messages,
"java.lang.Enum cannot be resolved", "Enum is not generic".

I have looked at the project properties and the project
property viewer shows that Compiler compliance level,
Generated .class files compatibility, and Source compatibility
are all set to "5.0". Are there some other properties
I should look at?

There are multiple 1.5.0xxx JDK's on the development box
and no 1.4 or other JDK's.

Sorry if this on is a faq, just point me in the direction
of the standard answer, thanks.

Robert Dodier
Re: "Enum cannot be resolved", "Enum is not generic" compiler errors [message #326912 is a reply to message #326910] Thu, 03 April 2008 01:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Robert,

Despite you assurances that there are no 1.4 JDKS on your development
box, it does sound like the JRE being used by Eclipse is a 1.4 JRE.
Check carefully in Window->Preferences->Java->Installed JREs where the
JRE that's being used is coming from...


Robert Dodier wrote:
> Hello,
>
> I am attempting to build (with Eclipse) a project which
> successfully builds with ant + javac 1.5.0.
>
> In a file which has some enums, I get some error messages,
> "java.lang.Enum cannot be resolved", "Enum is not generic".
>
> I have looked at the project properties and the project
> property viewer shows that Compiler compliance level,
> Generated .class files compatibility, and Source compatibility
> are all set to "5.0". Are there some other properties
> I should look at?
>
> There are multiple 1.5.0xxx JDK's on the development box
> and no 1.4 or other JDK's.
>
> Sorry if this on is a faq, just point me in the direction
> of the standard answer, thanks.
>
> Robert Dodier
>
>
Re: "Enum cannot be resolved", "Enum is not generic" compiler errors [message #326951 is a reply to message #326912] Thu, 03 April 2008 15:24 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Ed Merks wrote:
> Robert,
>
> Despite you assurances that there are no 1.4 JDKS on your development
> box, it does sound like the JRE being used by Eclipse is a 1.4 JRE.
> Check carefully in Window->Preferences->Java->Installed JREs where the
> JRE that's being used is coming from...

Also open the Help > About dialog and click on the Configuration Details
button to see what the java.version and java.vendor values are. That
will tell you what Java Eclipse itself is running on.

Eric
Previous Topic:Dialogs in org.eclipse.ui.workbench JAR
Next Topic:Background color for content assist
Goto Forum:
  


Current Time: Sun Jul 07 09:25:05 GMT 2024

Powered by FUDForum. Page generated in 0.53193 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top