You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Res Pons <po...@hotmail.com> on 2006/05/22 19:50:33 UTC

Installing Ant on Linux Enterprise 3.5

Hi

I've always used Ant on Window's environment.  I would like to install Ant 
on a linux box and set it up as my build machine.

I've already installed the latest Subversion, Tomcat 5.5.14, and JDK 1.5.06 
and latest Ant.tar.gz from Apache.  I did not do a native compile and just 
expanded the binaries into /usr/local.  When I was installing the new Ant, I 
saw an abbreviated OLD version installed on the server which had the 
following files in the following places:

/usr/bin/ant ---- {so I saved a back up copy and replaced this old version 
with the new installation from /usr/local/apache-ant-1.6.5/bin/ant.  Also I 
created a symlink in /usr/local/ant to point to the new installation.  So 
now when I execute $type ant, I see the correct version}

AND IN

/usr/share/ant/bin/ there were the following OLD symlinks

lrwxrwxrwx    1 root     root           34 Mar 29  2005 activation.jar -> 
../../java/activation-20030319.jar
lrwxrwxrwx    1 root     root           24 Mar 29  2005 ant.jar -> 
../../java/ant-1.5.2.jar
lrwxrwxrwx    1 root     root           33 Mar 29  2005 ant-optional.jar -> 
../../java/ant-optional-1.5.2.jar
lrwxrwxrwx    1 root     root           23 Mar 29  2005 bcel.jar -> 
../../java/bcel-5.0.jar
lrwxrwxrwx    1 root     root           36 Mar 29  2005 commons-logging.jar 
-> ../../java/commons-logging-1.0.2.jar
lrwxrwxrwx    1 root     root           33 Mar 29  2005 jakarta-regexp.jar 
-> ../../java/jakarta-regexp-1.2.jar
lrwxrwxrwx    1 root     root           29 Mar 29  2005 java_cup.jar -> 
../../java/java_cup-10.11.jar
lrwxrwxrwx    1 root     root           26 Mar 29  2005 junit.jar -> 
../../java/junit-3.8.1.jar
lrwxrwxrwx    1 root     root           28 Mar 29  2005 mail.jar -> 
../../java/mail-20031006.jar
lrwxrwxrwx    1 root     root           26 Mar 29  2005 xalan.jar -> 
../../java/xalan-2.4.1.jar
lrwxrwxrwx    1 root     root           27 Mar 29  2005 xerces.jar -> 
../../java/xerces-2.2.1.jar

WHAT AM I SUPPOSED TO DO WITH THESE FILES?  SEVER THE LINKS OR POINT THEM TO 
THE NEW INSTALLATION?

Also I added the new paths to my .bash_profile:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=/usr/local/ant/:/usr/local/ant/lib:$PATH:/bin:/usr/bin:$HOME/bin:/usr/local/tomcat/server/lib:/usr/local/tomcat/bin
#PATH=$PATH:$HOME/bin:/usr/local/apache-tomcat-5.5.16/server/lib:/usr/local/apache-tomcat-5.5.16/bin

export ANT_HOME=/usr/local/apache-ant-1.6.5
export JAVA_HOME=/usr/java/jdk1.5.0_06
#export PATH=${PATH}:${ANT_HOME}/bin:${ANT_HOME}/lib
export PATH
unset USERNAME

So now when I type ant, I get the following error msg:

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/tools/ant/launch/Launcher

I have NO clue as what I'm doing wrong.  Please help!

Thanks.

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org