Unable to locate package java.lang in classpath or bootclasspath

Discussion in 'Java' started by Mannu, Feb 12, 2007.

  1. Mannu

    Mannu Guest

    I am new to Eclipse. I tried to build a project but I got the
    following error. I assume that it is environment issue. Any help would
    be apprecitated.

    Buildfile: E:\Eclipse\WorkSpace\HelloWorld\build.xml
    cleanup:
    [delete] Deleted 2 directories from E:\Eclipse\WorkSpace\HelloWorld
    \classes.ant
    clean:
    precompile:
    init:
    [mkdir] Created dir: E:\Eclipse\WorkSpace\HelloWorld\classes.ant
    [mkdir] Created dir: E:\Eclipse\WorkSpace\HelloWorld\classes.ant
    \Temporary_Files
    javacompile:
    [javac] Compiling 2 source files to E:\Eclipse\WorkSpace\HelloWorld
    \classes.ant
    [javac] Fatal Error: Unable to locate package java.lang in
    classpath or bootclasspath

    BUILD FAILED
    E:\Eclipse\WorkSpace\HelloWorld\build.xml:68: Compile failed; see the
    compiler error output for details.

    Total time: 3 seconds
     
    Mannu, Feb 12, 2007
    #1
    1. Advertising

  2. On 12.02.2007 14:00, Mannu wrote:
    > I am new to Eclipse. I tried to build a project but I got the
    > following error. I assume that it is environment issue. Any help would
    > be apprecitated.
    >
    > Buildfile: E:\Eclipse\WorkSpace\HelloWorld\build.xml
    > cleanup:
    > [delete] Deleted 2 directories from E:\Eclipse\WorkSpace\HelloWorld
    > \classes.ant
    > clean:
    > precompile:
    > init:
    > [mkdir] Created dir: E:\Eclipse\WorkSpace\HelloWorld\classes.ant
    > [mkdir] Created dir: E:\Eclipse\WorkSpace\HelloWorld\classes.ant
    > \Temporary_Files
    > javacompile:
    > [javac] Compiling 2 source files to E:\Eclipse\WorkSpace\HelloWorld
    > \classes.ant
    > [javac] Fatal Error: Unable to locate package java.lang in
    > classpath or bootclasspath
    >
    > BUILD FAILED
    > E:\Eclipse\WorkSpace\HelloWorld\build.xml:68: Compile failed; see the
    > compiler error output for details.
    >
    > Total time: 3 seconds


    You probably have disabled the root / default class path in your ant script.

    robert
     
    Robert Klemme, Feb 12, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gabe
    Replies:
    3
    Views:
    1,122
  2. Replies:
    0
    Views:
    2,236
  3. Oliver Wong
    Replies:
    12
    Views:
    1,498
    Roedy Green
    Dec 10, 2005
  4. Dzikus
    Replies:
    0
    Views:
    756
    Dzikus
    Apr 16, 2008
  5. Roedy Green

    ant and -bootclasspath

    Roedy Green, Dec 17, 2011, in forum: Java
    Replies:
    5
    Views:
    3,238
Loading...

Share This Page