ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William G. Thompson, Jr." <wgt...@softcom.com>
Subject Re: trouble building ant
Date Thu, 03 Aug 2000 18:37:26 GMT
Noah Lee wrote:
> 
> Forgive me if this is simple, but I'm pretty java stupid. I'm trying to get
> jakarta-ant built so I can do a fresh build of tomcat, as the binary
> distribution hasn't been working for our needs. I have jdk1.2.2 on redhat
> linux 6.2 and got the bootstrap.sh file to run just fine. When I run the
> build.sh for ant I get:
> 
> ./build.sh -Ddist.dir=/usr/local/jakarta/jakarta-ant dist
> Building with classpath /usr/bin/jdk1.2.2/lib/ext/:./lib/ant.jar:./lib/xml.jar
> Buildfile: build.xml
> Project base dir set to: /usr/local/jakarta/jakarta-ant
> Executing Target: prepare
> Created dir: /usr/local/jakarta/jakarta-ant/build
> Executing Target: check_for_optional_packages
> Executing Target: compile
> Created dir: /usr/local/jakarta/jakarta-ant/build/classes
> Compiling 53 source files to /usr/local/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)
> 
> Any suggestions as to a fix?

sun.tools.javac.Main.class,  which is in $JAVA_HOME/lib/tools.jar, is
missing from your classpath.  Try setting $JAVA_HOME to where you
install the jdk, mine looks like JAVA_HOME=/opt/jdk1.2.2

Cheers,
Bill

-- 
Bill Thompson | geek
"I'd rather write programs to write programs than write programs" 
bill@softcom.com | t: 732 283 5900 | f: 732 283 5757
http://www.softcom.com | Making Video Interactive

Mime
View raw message