You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Graeme Shaw <gr...@gmail.com> on 2005/04/08 17:01:53 UTC

Ant configuration problem (tools.jar).

I'm trying to get Ant set up so I can use it to install Apache XML-RPC.

I have:
$JAVA_HOME=/usr/lib/java/jre
$ANT_HOME=/usr/local/ant

When I run 'ant' in the XML-RPC directory I get the output I've
attached at the bottom.  I can't seem to find a tools.jar either in
/usr/lib/java/jre/lib or in /usr/lib/SunJava2-1.4.2/jre/lib.

Ant seems to be looking for tools.jar in /usr/lib/SunJava2-1.4.2/lib/
which doesn't even exist.  This is all under SuSE Linux Professional
9.1.

Any help with this will be greatly appreciated, I need to get XML-RPC
up and running as quickly as possible, thanks in advance,

Graeme ('ant' output below).

Unable to locate tools.jar. Expected to find it in
/usr/lib/SunJava2-1.4.2/lib/tools.jar
Buildfile: build.xml

env:
     [echo] java.home = /usr/lib/SunJava2-1.4.2/jre
     [echo] user.home = /home/thorin
     [echo] jsse.jar = ${jsse.jar}
     [echo] jnet.jar = ${jnet.jar}
     [echo] jcert.jar = ${jcert.jar}
     [echo] servlet.jar = ${servlet.jar}
     [echo] junit.jar = ${junit.jar}

init:

prepare:

compile:

BUILD FAILED
/home/thorin/xmlrpc-1.2-b1/build.xml:137: srcdir
"/home/thorin/xmlrpc-1.2-b1/${src.dir}" does not exist!

Total time: 3 seconds

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


Re: Ant configuration problem (tools.jar).

Posted by Graeme Shaw <gr...@gmail.com>.
Thanks very much for everyone's rapid responses, downloading a JDK and
changing my $JAVA_HOME to point to it resolved the problem, Ant is now
working correctly!

On Apr 8, 2005 4:12 PM, Jeffrey E Care <ca...@us.ibm.com> wrote:
> If all you have is the JRE (and not the JDK) then you won't have tools.jar
> 
> --
> Jeffrey E. Care (carej@us.ibm.com)
> WebSphere Build SWAT Team Lead
> WebSphere Build Tooling Lead (Project Mantis)
> https://w3.opensource.ibm.com/projects/mantis
> 
> Graeme Shaw <gr...@gmail.com> wrote on 04/08/2005 11:01:53 AM:
> 
> > I'm trying to get Ant set up so I can use it to install Apache XML-RPC.
> >
> > I have:
> > $JAVA_HOME=/usr/lib/java/jre
> > $ANT_HOME=/usr/local/ant
> >
> > When I run 'ant' in the XML-RPC directory I get the output I've
> > attached at the bottom.  I can't seem to find a tools.jar either in
> > /usr/lib/java/jre/lib or in /usr/lib/SunJava2-1.4.2/jre/lib.
> >
> > Ant seems to be looking for tools.jar in /usr/lib/SunJava2-1.4.2/lib/
> > which doesn't even exist.  This is all under SuSE Linux Professional
> > 9.1.
> >
> > Any help with this will be greatly appreciated, I need to get XML-RPC
> > up and running as quickly as possible, thanks in advance,
> >
> > Graeme ('ant' output below).
> >
> > Unable to locate tools.jar. Expected to find it in
> > /usr/lib/SunJava2-1.4.2/lib/tools.jar
> > Buildfile: build.xml
> >
> > env:
> >      [echo] java.home = /usr/lib/SunJava2-1.4.2/jre
> >      [echo] user.home = /home/thorin
> >      [echo] jsse.jar = ${jsse.jar}
> >      [echo] jnet.jar = ${jnet.jar}
> >      [echo] jcert.jar = ${jcert.jar}
> >      [echo] servlet.jar = ${servlet.jar}
> >      [echo] junit.jar = ${junit.jar}
> >
> > init:
> >
> > prepare:
> >
> > compile:
> >
> > BUILD FAILED
> > /home/thorin/xmlrpc-1.2-b1/build.xml:137: srcdir
> > "/home/thorin/xmlrpc-1.2-b1/${src.dir}" does not exist!
> >
> > Total time: 3 seconds
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> 
>

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


Re: Ant configuration problem (tools.jar).

Posted by Jeffrey E Care <ca...@us.ibm.com>.
If all you have is the JRE (and not the JDK) then you won't have tools.jar

-- 
Jeffrey E. Care (carej@us.ibm.com)
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis


Graeme Shaw <gr...@gmail.com> wrote on 04/08/2005 11:01:53 AM:

> I'm trying to get Ant set up so I can use it to install Apache XML-RPC.
> 
> I have:
> $JAVA_HOME=/usr/lib/java/jre
> $ANT_HOME=/usr/local/ant
> 
> When I run 'ant' in the XML-RPC directory I get the output I've
> attached at the bottom.  I can't seem to find a tools.jar either in
> /usr/lib/java/jre/lib or in /usr/lib/SunJava2-1.4.2/jre/lib.
> 
> Ant seems to be looking for tools.jar in /usr/lib/SunJava2-1.4.2/lib/
> which doesn't even exist.  This is all under SuSE Linux Professional
> 9.1.
> 
> Any help with this will be greatly appreciated, I need to get XML-RPC
> up and running as quickly as possible, thanks in advance,
> 
> Graeme ('ant' output below).
> 
> Unable to locate tools.jar. Expected to find it in
> /usr/lib/SunJava2-1.4.2/lib/tools.jar
> Buildfile: build.xml
> 
> env:
>      [echo] java.home = /usr/lib/SunJava2-1.4.2/jre
>      [echo] user.home = /home/thorin
>      [echo] jsse.jar = ${jsse.jar}
>      [echo] jnet.jar = ${jnet.jar}
>      [echo] jcert.jar = ${jcert.jar}
>      [echo] servlet.jar = ${servlet.jar}
>      [echo] junit.jar = ${junit.jar}
> 
> init:
> 
> prepare:
> 
> compile:
> 
> BUILD FAILED
> /home/thorin/xmlrpc-1.2-b1/build.xml:137: srcdir
> "/home/thorin/xmlrpc-1.2-b1/${src.dir}" does not exist!
> 
> Total time: 3 seconds
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>