ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Caoilte O'Connor <li...@caoilte.org>
Subject Re: java task and classpath problem
Date Tue, 11 Nov 2003 14:34:58 GMT
sorry. i should have been clearer.

it couldn't find the class i was trying to execute (ie the 
one with main in).

error:
[java] Could not find net.sportplan.dbunit.DBUnitUtils. Make 
sure you have it in your class path.

(DBUnitUtils is the class with main in.)
debug doesn't help 'caus it doesn't print the classpath by 
default and I'm even sure that's the issue.

anyway i'm probably only being stupid.
i thought adding a directory to your class path added any 
class files in the dirs below that if they obeyed the 
correct package names.

ie i added
/blah/
and
/blah/net/sportplan/dbunit/DBUnitUtils.class

was the file i wanted to execute. for some reason that only 
works if i fork though.

c


On Tuesday 11 November 2003 15:22, Stefan Bodewig wrote:
> On Tue, 11 Nov 2003, Caoilte O'Connor <lists@caoilte.org> 
wrote:
> > The below fails with a "not found on classpath error"
>
> Which class is it that Ant cannot find?  Does ant -debug
> give any hints?
>
> Stefan
>
> ---------------------------------------------------------
>------------ 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
View raw message