Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » java.lang.Enum cannot be resolved.
java.lang.Enum cannot be resolved. [message #484749] Wed, 09 September 2009 02:43 Go to next message
Eclipse UserFriend
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 03:10 Go to previous messageGo to next message
Eclipse UserFriend
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 12:22 Go to previous messageGo to next message
Eclipse UserFriend
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 10:14 Go to previous messageGo to next message
Eclipse UserFriend
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] Thu, 28 July 2011 22:48 Go to previous messageGo to next message
Eclipse UserFriend
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 10:52 Go to previous message
Eclipse UserFriend
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 Jul 04 07:12:13 EDT 2025

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

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

Back to the top