ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Schewe <jpsch...@eggplant.mtu.net>
Subject Re: IllegalAccessError when using java task
Date Sun, 26 Nov 2000 05:43:29 GMT
Is there a way for the class called by the java task to be loaded by the
system class loader?  Would writing an actual Task class help the situation? 

"Conor MacNeill" <conor@m64.com> writes:

> 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?
> >
> >
> 

-- 
Jon Schewe | http://eggplant.mtu.net/~jpschewe
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39
NOTE: My first name has no 'h' in it!  Please be observant.


Mime
View raw message