Re: URGENT: problem installing Ant

2003-03-27 Thread Sebastien Blanc
first u need the bin directory in ur PATH to be able to launch the
ANT_HOME/bin/ant sh script.
then add some echo or 'set -ux' to check why ur classpath is not good.
seb.

Cristina Surroca wrote:

 Hi!
 I'm doing a project with Postgresql and I need to use JDBC.
 I've got a problem installing ant (I use SUSE). When I try to execute ant is
 trhown this exeption:

  Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/tools/ant/Main

 my PATH:

 echo $PATH
 /sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/X11R6/bin:/bin
 :/usr/games/bin:/usr/games:/opt/gnome/bin:/usr/local/soft/jdk1.3.1_07/:/usr/
 local/src/apache-ant-1.5.2

 and I've done also:

 JAVA_HOME=/usr/local/soft/jdk1.3.1_07
 export JAVA_HOME



 ANT_HOME=/usr/local/src/apache-ant-1.5.2
 export ANT_HOME


 Does anyone know what I'm doing wrong?

 Thanks

 Cris..



Re: URGENT: problem installing Ant

2003-03-27 Thread Conor MacNeill
On Thu, 27 Mar 2003 08:39 am, Cristina Surroca wrote:
 Hi!
 I'm doing a project with Postgresql and I need to use JDBC.
 I've got a problem installing ant (I use SUSE). When I try to execute ant
 is trhown this exeption:


  Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/tools/ant/Main


What exactly have you installed? (RPM, Binary dist, built src dist??)

ANT_HOME=/usr/local/src/apache-ant-1.5.2

Is that a source distribution?

One thing you can do is run Ant like this

sh -x `which ant`

This will tell you what the Ant launch script is up to.

 my PATH:

Doesn't look quite right - it should include $ANT_HOME/bin not $ANT_HOME.


-- 
Conor MacNeill
Blog: http://codefeed.com/blog/