You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Chris Stillwell <Ch...@wcom.com> on 2001/03/13 17:59:11 UTC

Resolved: NullPointerException & Problems running on AIX

All of the problems I was experiencing with Ant 1.3 on our AIX box have gone
away after hacking the bootstrap build script to run on our AIX box, and
rebuilding Ant from the source distribution. Hmmmm, let's see now, that's
"Write once run ... "

Chris Stillwell



RE: Resolved: NullPointerException & Problems running on AIX

Posted by Chris Stillwell <Ch...@wcom.com>.
Its not that the bootstrap script is wrong so much as IBM in their infinite
wisdom seem to have a non-standard setup for the Java install.  This causes
problems with things in the script like:

if [ ! -x "$JAVA_HOME/bin/java" ] ; then
  echo "Error: JAVA_HOME is not defined correctly."
  echo "  We cannot execute JAVA_HOME/bin/java"
  exit
fi

because that's not where java is executed from, its in
${JAVA_HOME}/jre/sh/java

So I commented out the above check and set JAVA=${JAVA_HOME}/jre/sh/java and
then modified any occurrences of ${JAVA_HOME}/bin/java with just ${JAVA}.
Similarly javac is not in ${JAVA_HOME}/bin/javac but rather
${JAVA_HOME}/sh/javac so I had to set the JAVAC environment variable
appropriately.

Chris

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Wednesday, March 14, 2001 1:48 AM
To: ant-user@jakarta.apache.org
Subject: Re: Resolved: NullPointerException & Problems running on AIX


Chris Stillwell <Ch...@wcom.com> wrote:

> All of the problems I was experiencing with Ant 1.3 on our AIX box
> have gone away

great!

> after hacking the bootstrap build script to run on our AIX box,

Has the bootstrap script been wrong? If so, I'd like to see a copy of
yours to make the distributed version work out of the box.

Stefan


Re: Resolved: NullPointerException & Problems running on AIX

Posted by Stefan Bodewig <bo...@apache.org>.
Chris Stillwell <Ch...@wcom.com> wrote:

> All of the problems I was experiencing with Ant 1.3 on our AIX box
> have gone away

great!

> after hacking the bootstrap build script to run on our AIX box,

Has the bootstrap script been wrong? If so, I'd like to see a copy of
yours to make the distributed version work out of the box.

Stefan