Exception while generating AST using Eclipse JDT SDK in a non-eclipse environment
问题 I'm trying to use the jdt's AST generation feature in a non-eclipse environment(as a plugin for another basic java ide). My program creates the AST correctly when I run it inside eclipse, but when I test the plugin it from the ide I get this exception: Exception in thread "AWT-EventQueue-0" java.lang.NoSuchFieldError: ignoreMethodBodies at org.eclipse.jdt.core.dom.CompilationUnitResolver.parse(CompilationUnitResolver.java:491) at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser