ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenneth Burrell <turing...@yahoo.com>
Subject Re: java.lang.NoClassDefFoundError: and j2sdk1.4
Date Wed, 04 Sep 2002 18:44:54 GMT
Yes - setting fork="true" alleviates the problem.. works with Ant versions 
1.41 and 1.5.

Thanks

--- Steve Loughran <steve_l@iseran.com> wrote:
> 
> ----- Original Message -----
> From: "Kenneth Burrell" <turingboy@yahoo.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Wednesday, September 04, 2002 8:50 AM
> Subject: java.lang.NoClassDefFoundError: and j2sdk1.4
> 
> 
> > Hi
> > I'm trying to run the java task with j2sdk1.4 and the following error
> occurs:
> > java.lang.NoClassDefFoundError:
> > sun/reflect/SerializationConstructorAccessorImpl
> >
> > This error does not occur when I run java from the command line with
> j2sdk1.4
> > (without Ant). I was not getting this error when using Ant with
> j2sdk1.3.1.
> > Since I can run from the command line, I assume the class is being found
> at
> > that point, but not when java is being invoked from Ant. I've also tried
> to run
> > different versions of Ant (1.4.1, 1.5, 1.5.1) with the same error. I've
> seen
> > mention of this error on Sun's web site as well. Has anyone else noticed
> this
> > behavior??
> 
> yeah, you need to set fork=true; java in non-forked mode is over restrictive
> on classpaths (1.6 does know exactly what packages are and arent in the base
> runtime for java1.1-1.4)
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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