Skip to main content

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

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 


Back to the top