ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Roodt <gro...@gmail.com>
Subject Re: path problems in build.xml
Date Thu, 10 Sep 2009 00:28:54 GMT
Ok, my last guess would be you need JAVA_HOME= /usr/lib/jvm/java.



On Wed, Sep 9, 2009 at 11:02 PM, Kerry Scott <kerry.scott@talktalk.net>wrote:

> Thanks Greg but..
> when I do that it can't find tools.jar which is in /usr/lib/jvm/java/lib
>
>
> -----Original Message-----
> From: Greg Roodt <groodt@gmail.com>
> Reply-to: "Ant Users List" <user@ant.apache.org>
> To: Ant Users List <user@ant.apache.org>, kerry.scott@talktalk.net
> Subject: Re: path problems in build.xml
> Date: Wed, 9 Sep 2009 22:19:00 +0100
>
> Hi
>
> I think you've answered your own question. Its looking for a JDK, but your
> JAVA_HOME references the JRE.
>
> Try setting JAVA_HOME to /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0
>
> Greg
>
>
>
>
>
> On Wed, Sep 9, 2009 at 10:20 PM, Kerry Scott <kerry.scott@talktalk.net
> >wrote:
>
> > Hi
> > I have problems running Ant and I am sure that it is somehow a PATH
> > problem but I have wrestled it to my death for 48 hours and would love
> > some ideas.
> > Platform - Mandriva Linux 2009 which has an Ant RPM - I have deleted it
> > and tried to use the version downloaded - it didn't come with Ant but
> > Ant.bat, Ant.cmd were included so I copied the Ant shell program from
> > the Mandriva RPM release
> > Symptoms: if I don't set ANT_HOME it cannot find the standard Java class
> > libraries so the compile dies on java.lang.Object cannot be resolved.
> > If I do set ANT_HOME  I get the error: Unable to find a javac compiler;
> > com.sun.tools.javac.Main is not on the classpath.
> > Perhaps JAVA_HOME does not point to the JDK.
> > It is currently set to "/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre"
> >
> > Any ideas
> >
> > Cheers
> >
> > Kerry
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message