Discussion:
Eclipse cannot find java.lang.Enum
(too old to reply)
Addanc
2008-04-30 16:10:53 UTC
Permalink
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
2008-04-30 18:02:56 UTC
Permalink
Post by Addanc
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
"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?
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.
--
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
2008-05-14 04:01:41 UTC
Permalink
Post by John W Kennedy
Post by Addanc
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
"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?
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.
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.
--
Lew
Roedy Green
2008-05-13 12:43:45 UTC
Permalink
Post by Addanc
"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 ?
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Loading...