tools.jar is part of a JDK - not included in a JRE.
So your JAVA_HOME should point to a JDK.

Jan

> -----Ursprüngliche Nachricht-----
> Von: Graeme Shaw [mailto:[EMAIL PROTECTED]
> Gesendet am: Freitag, 8. April 2005 17:02
> An: user@ant.apache.org
> Betreff: 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to