ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject Re: Confusion of jar in Ant's classpath and system's CLASSPATH
Date Tue, 29 Nov 2005 16:37:43 GMT
> > How so invoked? Is that class that's not found used directory by the
> > code, or indirectly thru a Class.forName() call? If the later, you
> > may
> > need to use the Context ClassLoader to correctly locate the class
> > (see
> > overloaded form of forName()).
> >
> > Could be something else too, but it's not easy to diagnose with the
> > information you provided. Class loading issues are tricky. --DD
> the missed class is invoked by Class.forName().
> Could you give some detailed information about the Context ClassLoader?
> Thanks you for your hint.

You're welcome. I suggest you research it a bit yourself ;-) Ted
Neward has an excellent White Paper on class loaders in general. See
the javadocs for Thread.getContextClassLoader() and
Class.forName(String name, boolean initialize, ClassLoader loader).

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message