Re: Eclipse cannot find java.lang.Enum



John W Kennedy wrote:
Addanc wrote:
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?

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
.



Relevant Pages

  • RE: More Info About $| = 1;
    ... Might it have something to do with Eclipse? ... use strict; ... use warnings; ... the command line does nothing until I enter some text, ...
    (perl.beginners)
  • Eclipse: Ant no com.sun.tools.javac.Main ?
    ... I can compile in ANT from the command line. ... I thought my eclipse project was working, but I did an update of my JDK ... on the classpath 'JRE System Libraries' ...
    (comp.lang.java.softwaretools)
  • commapi problem configuration
    ... Run from command line. ... port in use by Unknown Windows Application ... The set up in autoexec.bat was for command line.If u use Eclipse try ...
    (comp.lang.java.programmer)
  • Re: Wish console unresponse when script started from Eclipse Editor
    ... > I am using Eclipse as an editor for Tcl/Tk scripts using the Eclipse ... I have set up an Eclipse external tool command to run ... > am having is that if I do a 'console show' in my scripts, ...
    (comp.lang.tcl)
  • Re: Eclipse compiler compliance
    ... * I am referring to compilation from the command line or from any tool that gives you direct access to setting the standard javac options, I cannot speak for 'doing it from Eclipse'. ... a simple text editor, I worked on a large project recently in which both JBuilder and Eclipse proved quite valuable. ... think is a great IDE for those that are experienced, but I fail to see what that has to do with this thread since no one was classified as a "learner" and the OP was specifically asking about Eclipse. ...
    (comp.lang.java.programmer)