在项目上运行构建器“AspectJ Builder”的错误

时间:2011-04-27 18:42:41

标签: spring-roo sts-springsourcetoolsuite ajdt

我正在使用Spring Roo的SpringSource工具套件。在我安装GWT插件之后,一切都运行良好,直到几天前(我认为这可能是一个问题,我不确定)。

每当我编码并按Save(ctrl + s)时,它会显示一个显示

的对话框
    Errors occurred during the build.
Errors running builder 'AspectJ Builder' on project xyz123
org/eclipse/ajdt/core/builder/AJBuilder$SourceFilesChangedVisitor


eclipse.buildId=2.6.0.201103161000-RELEASE
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product com.springsource.sts.ide
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product com.springsource.sts.ide


Error
Wed Apr 27 14:33:03 EDT 2011
Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".

java.lang.ClassFormatError: org/eclipse/ajdt/core/builder/AJBuilder$SourceFilesChangedVisitor
at org.eclipse.ajdt.core.builder.AJBuilder.sourceFilesChanged(AJBuilder.java:1707)
at org.eclipse.ajdt.core.builder.AJBuilder.hasChangesAndMark(AJBuilder.java:1639)
at org.eclipse.ajdt.core.builder.AJBuilder.build(AJBuilder.java:185)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

有人可以帮我解决这个问题吗?

谢谢,

1 个答案:

答案 0 :(得分:2)

当类文件格式错误或损坏时,会发生ClassFormatError。见这里:

http://download.oracle.com/javase/6/docs/api/java/lang/ClassFormatError.html

很可能你的AJDT安装已经被破坏了。我建议您尝试以下一项或所有方法:

  1. 卸载Google插件。这个问题会消失吗?
  2. 升级到AJDT的最新开发快照。更新网站位于:http://download.eclipse.org/tools/ajdt/36/dev/update升级后,您的错误会消失吗?
  3. 作为最后的手段,请尝试重新安装STS。您可以保持工作空间,只需再次解压缩STS。