ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject RE: IllegalAccessError when using java task
Date Sun, 26 Nov 2000 05:00:28 GMT
Jon,

I assume you have specified a classpath and fork="no". For this
classpath to be used and not the system classpath, ant must use a
classloader. In this case, ant currently forces the class specified by
the java task to be loaded by the ant class loader.

Conor


> -----Original Message-----
> From: jpschewe@workstation.mn.mtu.net
> [mailto:jpschewe@workstation.mn.mtu.net]On Behalf Of Jon Schewe
> Sent: Sunday, 26 November 2000 9:13
> To: ant-user@jakarta.apache.org
> Subject: Re: IllegalAccessError when using java task
>
>
> I tried with -debug and got the following:
>    [assert] Running in same VM
> org.tcfreenet.schewe.assert.JonsAssert
> /home/jpschewe/projects/java/foo/antTest "-d
> /home/jpschewe/projects/java/instrumented"
> force loading org.tcfreenet.schewe.assert.JonsAssert
> Finding class org.tcfreenet.schewe.assert.JonsAssert
>
> Does this mean that the class JonsAssert is not being loaded
> by the system
> class loader?  If so, why would ant be using its own class
> loader anyway?
>
>


Mime
View raw message