Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » java.lang.Enum cannot be resolved.
java.lang.Enum cannot be resolved. [message #484749] Wed, 09 September 2009 06:43 Go to next message
Satish Burnwal is currently offline Satish BurnwalFriend
Messages: 5
Registered: July 2009
Junior Member
While building my project I am getting this error - The type
java.lang.Enum cannot be resolved. It is indirectly referenced from
required .class files. Can anyone help me resolving this ? I am using JDK
1.6 and Eclipse 3.4.0 (Ganymede). I did try to search in forums but they
mention the resolution for JDK 1.5 only. I have to use JDK 1.6 and dont
have any other JDK option.

Thanks
-Satish
Re: java.lang.Enum cannot be resolved. [message #484756 is a reply to message #484749] Wed, 09 September 2009 07:10 Go to previous messageGo to next message
Michael Piefel is currently offline Michael PiefelFriend
Messages: 12
Registered: July 2009
Junior Member
Satish Burnwal schrieb:
> While building my project I am getting this error - The type
> java.lang.Enum cannot be resolved. It is indirectly referenced from
> required .class files. Can anyone help me resolving this ? I am using
> JDK 1.6 and Eclipse 3.4.0 (Ganymede). I did try to search in forums but
> they mention the resolution for JDK 1.5 only. I have to use JDK 1.6 and
> dont have any other JDK option.

My Eclipse sometimes exhibits similar behaviour, too. Sometimes, it
doesn’t even find java.lang.Class anymore. If you face the same problem
indeed, try the following: Change the JRE, during the subsequent rebuild
everything is reindexed. You find the installed JREs in the Eclipse
preferences. If you have a JDK installed, you always have the private
JRE as an alternative so you can switch back and forth.

Bye,
Mike

--
Michael Piefel
netCCM GmbH
Re: java.lang.Enum cannot be resolved. [message #665731 is a reply to message #484756] Fri, 15 April 2011 16:22 Go to previous messageGo to next message
Damian Munguia is currently offline Damian MunguiaFriend
Messages: 1
Registered: April 2011
Junior Member
I have the same problem in my fedora, but in windows I don't and only have jdk1.6.0_24 on both my fedora and windows aaaaa! help i'm what to get started working in fedora
Re: java.lang.Enum cannot be resolved. [message #671990 is a reply to message #665731] Thu, 19 May 2011 14:14 Go to previous messageGo to next message
Simon Peter Muwanga is currently offline Simon Peter MuwangaFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,
Michael Piefel's solution worked for me. Am using ubuntu 9.0.4 and eclipse Galileo.

Extract a fresh copy of jdk to a given location like /home/your-username/jdk

Go to Window>Preferences>Java>Installed JREs
Click the Add button, Select Standard VM, click Next.
On new window that pops up, click Directory button to browse for the folder where JDK(like JDK1.6.0_18)was extracted. Follow the prompts, and all will be back to normal.


Regards,
Simon.
Re: java.lang.Enum cannot be resolved. [message #704743 is a reply to message #671990] Fri, 29 July 2011 02:48 Go to previous messageGo to next message
Peter N. Steinmetz is currently offline Peter N. SteinmetzFriend
Messages: 1
Registered: July 2011
Junior Member
Also ran into this problem recently. It required throwing away the workspace and then building a new one.

I suspect this may have had to do with errors initializing java tooling during startup, which were likely caused by my attempt to copy the settings for jdt core into this workspace from another.
Re: java.lang.Enum cannot be resolved. [message #879630 is a reply to message #704743] Thu, 31 May 2012 14:52 Go to previous message
Andrew Yan is currently offline Andrew YanFriend
Messages: 1
Registered: May 2012
Junior Member
I got similar problem. Upgrading from JDK 1.6.0_24 to 1.6.0_32 fixed it Smile
Previous Topic:Multi encoding problem
Next Topic:Software update doesn't work at all
Goto Forum:
  


Current Time: Fri Apr 19 05:06:22 GMT 2024

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

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

Back to the top