Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] NoSuchMethodError when using Ant?

Wes --

The iajc task works correctly. Thanks for your assistance. 

-Michael


--- Wes Isberg <wes@xxxxxxxxxxxxxx> wrote:
> Hi Michael -
> 
> Would you try the "iajc" task?  It's been the current task since 
> 1.1.  The ajc task was provided for backwards compatibility in 
> the 1.0->1.1 transition, but I wouldn't be surprised if the API's
> changed under it, since it does not have automated tests.
> If so, I apologize, and will remove it from the distribution.
> 
> Wes
> (See also
>     https://bugs.eclipse.org/bugs/show_bug.cgi?id=67503)
> 
> I should have noticed this earlier...)
> 
> 
> Michael McConnell wrote:
> 
> > Env: 
> > Eclipse 3.0 (M9)
> > J2SDK1.4.2_04
> > AspectJ 1.2
> > Win2K
> > 
> > 
> > Has anyone run into this or a similar problem?
> > 
> >  -- I am attempting to compile the Spring framework example 'JPetClinic' using
> AspectJ,
> > and I am using the 1.2 aspectjtools.jar within my Eclipse environment. It seems that
> the
> > ant tasks are out of date with the current release of AspectJ. 
> > 
> > I decompiled org.aspectj.tools.ajc.Main within the jar and there *is no* method named
> > 'compile'.
> > 
> > Thanks in advance.
> > 
> > Michael
> > 
> > 
> > 
> > Buildfile: D:\workspace\AJ-JPetClinic\ajc-build.xml
> > build:
> >       [ajc] Compiling 714 source and 0 arg files to D:\workspace\AJ-JPetClinic\bin
> >       [ajc] java.lang.NoSuchMethodException:
> > org.aspectj.tools.ajc.Main.compile([Ljava.lang.String;)
> >       [ajc] at java.lang.Class.getMethod(Unknown Source)
> >       [ajc] at org.aspectj.tools.ant.taskdefs.Ajc.spoon(Ajc.java:552)
> >       [ajc] at org.aspectj.tools.ant.taskdefs.Ajc.execute(Ajc.java:454)
> >       [ajc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
> >       [ajc] at org.apache.tools.ant.Task.perform(Task.java:364)
> >       [ajc] at org.apache.tools.ant.Target.execute(Target.java:301)
> >       [ajc] at org.apache.tools.ant.Target.performTasks(Target.java:328)
> >       [ajc] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
> >       [ajc] at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
> >       [ajc] at
> >
>
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:377)
> >       [ajc] at
> >
>
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)
> > BUILD FAILED: D:\workspace\AJ-JPetClinic\ajc-build.xml:123: Couldn't create compiler!
> > Total time: 1 second
> > 
> > 
> > =====
> > 
> > 
> > 
> > 		
> > __________________________________
> > Do you Yahoo!?
> > Read only the mail you want - Yahoo! Mail SpamGuard.
> > http://promotions.yahoo.com/new_mail 
> > _______________________________________________
> > aspectj-users mailing list
> > aspectj-users@xxxxxxxxxxx
> > http://dev.eclipse.org/mailman/listinfo/aspectj-users
> > 
> 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
> 


=====



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 


Back to the top