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?
> 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
>"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