I'm having trouble compiling ant, I've been through the
documentation several times, maybe I'm missing something but
I think everything should be set correctly.

I'm building Ant on the following system and Env Vars set.

Redhat 7.1
Kernel 2.4.5
Sun j2re-1_3_1-linux-i386-rpm.bin (Install via RPM)

I have the following Env Vars set.

JAVA_HOME=/usr/java/jre1.3.1
export JAVA_HOME

XML=/usr/java/jaxp-1.1
export XML

JSSE=/usr/java/jsse1.0.2/lib
export JSSE

JAKARTA_HOME=/usr/jakarta
export JAKARTA_HOME

ANT_HOME=$JAKARTA_HOME/jakarta-ant
export ANT_HOME

CLASSPATH=$JAVA_HOME:$XML/jaxp.jar:$XML/crimson.jar:$XML/xalan.jar:$JSSE/jsse.jar:$JSSE/
jnet.jar:$JSSE/jcert.jar:$ANT_HOME/bin
export CLASSPATH

I attempt to build Ant with the following command

cd /usr/jakarta/jakarta-ant-1.3
./build.sh -Ddist.dir=$ANT_HOME dist

I then get the following error

... Bootstrapping Ant Distribution
... Compiling Ant Classes
./bootstrap.sh: /usr/java/jre1.3.1/bin/javac: No such file
or directory
... Copying Required Files
cp: cannot create regular file `classes/org/apache/tools/ant/taskdefs':
No such file or directory
cp: cannot create regular file `classes/org/apache/tools/ant/types':
No such file or directory
... Building Ant Distribution
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/Main
... Cleaning Up Build Directories
chmod: getting attributes of `bootstrap/bin/ant': No such
file or directory
chmod: getting attributes of `bootstrap/bin/antRun': No such
file or directory
... Done Bootstrapping Ant Distribution
./build.sh: bootstrap/bin/ant: No such file or directory

This tells me that it can't find javac which im my system
exists in /usr/java/jre1.3.1/bin/i386/green_threads/javac so
I did the following 

ln -s /usr/java/jre1.3.1/bin/i386/green_threads/javac
/usr/java/jre1.3.1/bin/javac

However this didn't fix the problem and I get this.

... Bootstrapping Ant Distribution
... Compiling Ant Classes
/usr/java/jre1.3.1/bin/javac: error while loading shared
libraries: cannot open shared object file: cannot load
shared object file: No such file or directory
... Copying Required Files
cp: cannot create regular file `classes/org/apache/tools/ant/taskdefs':
No such file or directory
cp: cannot create regular file `classes/org/apache/tools/ant/types':
No such file or directory
... Building Ant Distribution
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/Main
... Cleaning Up Build Directories
chmod: getting attributes of `bootstrap/bin/ant': No such
file or directory
chmod: getting attributes of `bootstrap/bin/antRun': No such
file or directory
... Done Bootstrapping Ant Distribution
./build.sh: bootstrap/bin/ant: No such file or directory

If anyone has advice on where to go or what to do it would
be greatly appricated.

Regards,
Theodore A. Jencks

Reply via email to