ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@ebinteractive.com.au>
Subject RE: Ant on Linux
Date Thu, 07 Dec 2000 00:35:34 GMT
Bill,

This has been changed in CVS

Conor

--
Conor MacNeill
conor@cortexebusiness.com.au
Cortex eBusiness
http://www.cortexebusiness.com.au

> -----Original Message-----
> From: Bill Burton [mailto:billb@progress.com]
> Sent: Thursday, 7 December 2000 5:09
> To: ant-user@jakarta.apache.org
> Subject: Re: Ant on Linux
>
>
> Hi Dan,
>
> IMHO, the ant batch and shell scripts have a bug in them.  You can set
> JAVA_HOME and instead of the ant script running $JAVA_HOME/bin/java as you
> would expect, it happily runs whatever java executable it finds first in
> the PATH which might not be the one you expect.
>
> In your .bashrc after setting JAVA_HOME try adding:
>   export JAVACMD=$JAVA_HOME/bin/java
> The ant script will now run whatever java executable is exported as
> JAVACMD and will not run whatever java executable it finds first in the
> PATH.
>
> -Bill Burton
>
> Dan MacKay wrote:
> >
> > Hi Weigi,
> >
> > Here is what I have done and the setup I have:
> >
> > I logged in as root and installed
> >         ant in /usr/local/bin/ant from the latest jakarta-ant-bin.tar.gz
> >         jaxp in /usr/local/jaxp1.0.1
> >
> > This is the .bash_profile:
> >
> > PATH=$PATH:$HOME/jtest/bin:$HOME/bin:/usr/local/jdk1.3
> > BASH_ENV=$home/.bashrc
> > USERNAME=""
> >
> > ANT_HOME=/usr/local/bin/ant
> > JAVA_HOME=/usr/local/jdk1.3
> > XML_HOME=/usr/local/jaxp1.0.1
> >
> >
> CLASSPATH=$CLASSPATH:/usr/local/bin/junit3/junit.jar:$XML_HOME/jax
> p.jar:$XML
> > _HOME/parser.jar
> >
> > and then I export all the variables
> >
> > When I attempt to run ant I consistently get the following error:
> >
> > Couldn't find or load essential class 'java/lang/object'
> > java.lan.NoClassDefFoundError java/lang/object
> > usr/local/bin/ant/bin: line 1411 aborted
> >
> > Any ideas would be appreciated.
> >
> > Thanks,
> >
> > Dan
>


Mime
View raw message