ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brent Phillips <>
Subject RE: persistent problems with Ant
Date Fri, 12 Jan 2001 21:54:26 GMT

Thanks for your response. jdsdk is just a symlink to j2sdk1.3.0 (the
Blackdown Linux distribution.)

I'm using RedHat 7 now, and I can run the Java examples that come with the
JDK, and I can compile and run simple Java via javac on the command line.
But no luck with Ant. :(

fyi - 
[lyra@grzzt lyra]$ rpm -qa | fgrep ava
[lyra@grzzt lyra]$ 


At 04:24 PM 1/12/2001 -0500, you wrote:
>JAVA_HOME usually refers to ones JDK - jdsdk isn't one I know... is that
>your JDK?  If so which? I'd expect JAVA_HOME to read
>/usr/local/java/jdk-1.2.2 or /usr/local/java/IBMJava2-13 or similar.
>Also be careful with RedHat as  as 5.x of 6.x versions installed "quavac"
>which was a broken JVM.  
>	rpm -qa | fgrep ava 
>And see what it yields.
>-----Original Message-----
>From: Brent Phillips []
>Sent: Friday, January 12, 2001 3:47 PM
>Subject: persistent problems with Ant
>I'm having a terrible time trying to get Ant to work. (My ultimate goal is
>to use Tomcat for Java servlets.) I've spent several days upgrading my
>RedHat Linux system to the latest everything, but I still can't get ant to
>compile or run. Any advice or suggestions are greatly appreciated. I'm a
>C++ veteran making the switch to Java, so please excuse my ignorance.
>As recommended in the Blackdown j2sdk and the Ant docs, I've set:	
>export JAVA_HOME=/usr/local/jdsdk
>export ANT_HOME=$JAVA_HOME/jakarta-ant
>export CLASSPATH=.:$JAVA_HOME/lib
>Using the binary package and trying to run ant yields:
>[lyra@grzzt local]$ ant
>Couldn't find or load essential class `java/lang/Object'
>java.lang.NoClassDefFoundError java/lang/Object
>/usr/local/jdsdk/jakarta-ant/bin/ant: line 70:  1443 Aborted
> $@ 
>Trying to build ant yields:
>lyra@grzzt jakarta-ant-src]# ./ 
>... Bootstrapping Ant Distribution
>... Compiling Ant Classes
>src/main/org/apache/tools/ant/types/ error:Cannot find
>type "org/apache/tools/ant/BuildException"
>src/main/org/apache/tools/ant/types/ error:Cannot
>find type "org/apache/tools/ant/Project"
>src/main/org/apache/tools/ant/types/ error:Cannot find type
>error:Cannot find type "org/apache/tools/ant/BuildException"
>src/main/org/apache/tools/ant/types/ error:Cannot find
>type "org/apache/tools/ant/BuildException"
>src/main/org/apache/tools/ant/types/ error:Cannot find type
>(lots of other errors deleted)
>thanks in advance for your attention
>Brent Phillips

View raw message