Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Unable to locate package java.lang in classpath or bootclasspath

Reply
Thread Tools

Unable to locate package java.lang in classpath or bootclasspath

 
 
Mannu
Guest
Posts: n/a
 
      02-12-2007
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

 
Reply With Quote
 
 
 
 
Robert Klemme
Guest
Posts: n/a
 
      02-12-2007
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ant and -bootclasspath Roedy Green Java 5 12-18-2011 03:24 AM
overrive bootclasspath using ant Dzikus Java 0 04-16-2008 10:58 AM
How does one locate the java executable and various JAR files in the classpath? Oliver Wong Java 12 12-10-2005 10:21 PM
ant java task bootclasspath prepend vnssoftware@myway.com Java 0 02-02-2005 04:53 PM
Classpath problem: javap is able to locate one class in a jar but not the other. Chandresh Prakash Java 1 12-05-2003 12:43 PM



Advertisments