You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Matt Robinson <ma...@flightcentre.com> on 2004/08/12 23:49:57 UTC

FOUND: A Fix for the ANT ClassNoDefFound Error on LINUX

Hi.

A Possible Resolution to the cocoon 2.1.5.1 build error on LINUX systems:
in "main" ClassDefNotFound: org/apache/ant/launcher/Launcher.class

The tools/bin/ant runtime shell script in the source distribution seems to
be wrong.

The first thing it does is check to see if the file /etc/ant.conf exist,
and executes it if it does.  The effect of this is to reset the ANT_HOME
and other important environment variables after they have been set by the
build.sh script.

To fix this error, rem out this section because there if there is an
existing ant installation on the server (especially if it is < 1.6!) then
it gets confused and issues a ClassNoDefFound error.

Here is a part of the file showing the changes in context (highlighted
with --* ):

# load system-wide ant configuration
--* #if [ -f "/etc/ant.conf" ] ; then
--* #  . /etc/ant.conf
--* #fi

Kind Regards,

Matt Robinson



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org