ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Barclay <dbarc...@mercator.com>
Subject RE: Classloader Problems
Date Mon, 08 Apr 2002 15:45:34 GMT



> From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
> ...
> Daniel Barclay wrote:
> 
> > 
> > 
> >>From: Adam Murdoch [mailto:adammurdoch@apache.org]
> >>...
> >>The <java> task uses a specialised classloader, which 
> >>basically ignores 
> >>everything from the system classloader that is not in the 
> >>java.* or javax.* 
> >>packages.  ...

> > Why does it do that?
> 
> 
> ...
> So, to handle the majority of cases, Ant uses the system copy 
> of the java.* and 
> javax.* classes. Typically a user class will not define 
> classes in these 
> packages. Unfortunately the VM runtime includes some classes 
> outside of these 
> packages such as the one above and these will not be 
> available unless it is 
> provided explicitly to the <java> task via its classpath. Of 
> course, the user's 
> classpath may include javax.* classes and these can also 
> cause problems.
>..

Can you get the bootstrap classpath or the bootstrap class
loader and use that instead of trying to duplicate its behavior?
Or is it not the bootstrap classpath that's the issue?



Daniel




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


Mime
View raw message