You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by David H Elrod <dh...@rivendell.com> on 2000/05/26 04:48:01 UTC

Problem building ant...

I am trying to build ant, but I keep running into the
error below.

I have the jdk1.2 and j2sdkee1.2.1.
I'm running RedHat Linux 6.2.

Any help with this would be greatly appreciated!

David

Building with classpath /home/java:/usr/local/java/jdk1.2/jre/lib/rt.jar:/usr/local/apache/ApacheJServ-1.1b3/src/java:/usr/local/apache/JSDK2.0/lib/jsdk.jar:/usr/local/java/jdk1.2/lib/i386:/usr/local/java/j2sdkee1.2.1/lib:/usr/local/java/j2sdkee1.2.1/lib/locale:/usr/local/java/jakarta/jakarta-ant/lib:.:./lib/ant.jar:./lib/xml.jar
Buildfile: build.xml
Project base dir set to: /usr/local/java/jakarta/jakarta-ant
Executing Target: prepare
Created dir: /usr/local/java/jakarta/jakarta-ant/build
Executing Target: check_for_optional_packages
Executing Target: compile
Created dir: /usr/local/java/jakarta/jakarta-ant/build/classes
Compiling 53 source files to /usr/local/java/jakarta/jakarta-ant/build/classes
Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main
        at org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Javac.java:418)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:218)
        at org.apache.tools.ant.Target.execute(Target.java:120)
        at org.apache.tools.ant.Project.runTarget(Project.java:675)
        at org.apache.tools.ant.Project.executeTarget(Project.java:422)
        at org.apache.tools.ant.Main.runBuild(Main.java:240)
        at org.apache.tools.ant.Main.main(Main.java:191)


-------------------------------------------------------------------
David Hunter Elrod                   Rivendell Technologies, Inc
dhelrod@rivendell.com                1111 W. El Camino #109, PMB348
http://www.rivendell.com             Sunnyvale, CA 94087-0126
Voice: 650/254-1790                  Fax: 650/254-1792


Re: Problem building ant...

Posted by "Niels J. Hansen" <nj...@eos.dk>.
Hi
You have to include the tools.jar file in your classpath. The file can be
found in the lib directory of your JDK installation.

Regards,
Niels J.
----- Original Message -----
From: "David H Elrod" <dh...@rivendell.com>
To: <ge...@jakarta.apache.org>
Cc: <dh...@gimli.rivendell.com>
Sent: Friday, May 26, 2000 4:48 AM
Subject: Problem building ant...


>
> I am trying to build ant, but I keep running into the
> error below.
>
> I have the jdk1.2 and j2sdkee1.2.1.
> I'm running RedHat Linux 6.2.
>
> Any help with this would be greatly appreciated!
>
> David
>
> Building with classpath
/home/java:/usr/local/java/jdk1.2/jre/lib/rt.jar:/usr/local/apache/ApacheJSe
rv-1.1b3/src/java:/usr/local/apache/JSDK2.0/lib/jsdk.jar:/usr/local/java/jdk
1.2/lib/i386:/usr/local/java/j2sdkee1.2.1/lib:/usr/local/java/j2sdkee1.2.1/l
ib/locale:/usr/local/java/jakarta/jakarta-ant/lib:.:./lib/ant.jar:./lib/xml.
jar
> Buildfile: build.xml
> Project base dir set to: /usr/local/java/jakarta/jakarta-ant
> Executing Target: prepare
> Created dir: /usr/local/java/jakarta/jakarta-ant/build
> Executing Target: check_for_optional_packages
> Executing Target: compile
> Created dir: /usr/local/java/jakarta/jakarta-ant/build/classes
> Compiling 53 source files to
/usr/local/java/jakarta/jakarta-ant/build/classes
> Exception in thread "main" java.lang.NoClassDefFoundError:
sun/tools/javac/Main
>         at
org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Javac.java:418)
>         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:218)
>         at org.apache.tools.ant.Target.execute(Target.java:120)
>         at org.apache.tools.ant.Project.runTarget(Project.java:675)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:422)
>         at org.apache.tools.ant.Main.runBuild(Main.java:240)
>         at org.apache.tools.ant.Main.main(Main.java:191)
>
>
> -------------------------------------------------------------------
> David Hunter Elrod                   Rivendell Technologies, Inc
> dhelrod@rivendell.com                1111 W. El Camino #109, PMB348
> http://www.rivendell.com             Sunnyvale, CA 94087-0126
> Voice: 650/254-1790                  Fax: 650/254-1792
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
>
>