Thread: : URGENT: problem installing Ant

: URGENT: problem installing Ant

From
"Cristina Surroca"
Date:
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

From
"Scot P. Floess"
Date:
Christina:

Make sure your ant jar files are "readable" by whatever user you are when you build.

For instance can you do this (as the user):

unzip -l ${ANT_HOME}/lib/ant.jar

Scot

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..


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
 

-- 
Scot P. Floess - 27 Lake Royale - Louisburg, NC  27549 - 252-478-8087

Open Source Home Page
--------------------------------------
http://javapim.sourceforge.net
http://jplate.sourceforge.net
http://jwaretechniques.sourceforge.net

Open Source Project Host
-----------------------------------------------
http://sourceforge.net/projects/javapim
http://sourceforge.net/projects/jplate
http://sourceforge.net/projects/jwaretechniques

Re: : URGENT: problem installing Ant

From
"Marcus Andree S. Magalhaes"
Date:

You need to check if your ANT_HOME directory holds the jar file
associated with ANT itself.

If you're interessed in compiling JDBC code, you can download it from the net.
You can even contact me and I'll be happy to send you a somewhat recend jar file.



Quoting Cristina Surroca <cris@dmcid.net>:

>
> 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..
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>




-------------------------------
   http://www.vlinfo.com.br


Re: : URGENT: problem installing Ant

From
"Marcus Andree S. Magalhaes"
Date:
Quoting Cristina Surroca <cris@dmcid.net>:

>
> 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..
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>




-------------------------------
   http://www.vlinfo.com.br