ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: method not found when running ant
Date Wed, 03 Nov 2004 18:05:18 GMT
--- Brian.Allen@regulusgroup.com wrote:
> [ballen@opacs184 sourcejammer]$ echo $JAVA_HOME
> /java/bin
Here is one problem.  If you want Ant to pick up
/java/bin/java as its Java executable, JAVA_HOME is
/java.

> [ballen@opacs184 sourcejammer]$ echo $ANT_HOME
> /usr/local/ant

Not sure why this didn't show up as ant.home .  Let's
fix what we do know is wrong first.

> [ballen@opacs184 sourcejammer]$ echo $PATH
>
/usr/kerberos/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/ant/bin:/java/bin:/usr/local/ant/lib:/usr/local/:/home/ballen/bin

I don't see why you would need /usr/local/ant/lib in
your PATH.

> BUILD FAILED
> file:/usr/local/sourcejammer/build.xml:5: taskdef
> class 
> org.sourcejammer.client.ant.SJGetProject cannot be
> found

You could make these classes available for all Ant
invocations by placing them in $HOME/.ant/lib, placing
in $ANT_HOME/lib, setting them in $HOME/.antrc, or
setting the -lib option in $ANT_ARGS.  For a single
invocation you could use the -lib option at the
command line.
For a single buildfile you could use <[task|type]def>s
with nested <classpath>s or <antlib>s.  I won't say
having a system CLASSPATH *never* works, but I've had
enough bad luck with it (with Java applications in
general) that the last time I tried it is an obscure
memory.

HTH,
Matt


		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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


Mime
View raw message