Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / May 2008

Tip: Looking for answers? Try searching our database.

Eclipse cannot find java.lang.Enum

Thread view: 
Addanc - 30 Apr 2008 17:10 GMT
I am running java 1.6 on Linux. I can build my application from the command
line and run without a problem. When I import it into Eclipse and build, I
get the following error message:

"The project was not built since its build path is incomplete. Cannot find
the class file for java.lang.Enum. Fix the build path then try building
this project again."

Has anybody got any idea how this is achieved with eclipse. Alternatively is
the a nice simple GUI front-end for jdb which doesn't involve Eclipse?
John W Kennedy - 30 Apr 2008 19:02 GMT
> I am running java 1.6 on Linux. I can build my application from the command
> line and run without a problem. When I import it into Eclipse and build, I
[quoted text clipped - 6 lines]
> Has anybody got any idea how this is achieved with eclipse. Alternatively is
> the a nice simple GUI front-end for jdb which doesn't involve Eclipse?

Go to Preferences and make sure that you /are/ using Java 6.

Go to Properties for the project and make sure that /it/ is using Java
6, too.

Signature

John W. Kennedy
 "But now is a new thing which is very old--
that the rich make themselves richer and not poorer,
which is the true Gospel, for the poor's sake."
  -- Charles Williams.  "Judgement at Chelmsford"

Lew - 14 May 2008 05:01 GMT
>> I am running java 1.6 on Linux. I can build my application from the
>> command
[quoted text clipped - 15 lines]
> Go to Properties for the project and make sure that /it/ is using Java
> 6, too.

I use RAD 7 (Rational Application Developer 7), which is based on Eclipse.
Sometimes it complains that it cannot find java.lang.Object, which impedes the
build a tad.  Invariably it's due to project metadata being out of whack,
thinking it's using a JRE that doesn't exist in the current IDE configuration
being the most common that I've seen.

This happens sometimes when I import projects from an earlier version of the IDE.

Signature

Lew

Roedy Green - 13 May 2008 13:43 GMT
>"The project was not built since its build path is incomplete. Cannot find
>the class file for java.lang.Enum. Fix the build path then try building
>this project again."

Are you explicitly using the Enum class?  Normally you would not.  You
just us the enum keyword.

Do you have the target set to -1.6 ?
Signature


Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.