Yes - setting fork="true" alleviates the problem.. works with Ant versions 1.41 and 1.5.
Thanks --- Steve Loughran <[EMAIL PROTECTED]> wrote: > > ----- Original Message ----- > From: "Kenneth Burrell" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
