我在我的Ubuntu 17 dekstop上运行了Intellij 2017.2.3和Checkstyle-IDEA 5.10.0。当我尝试添加的CheckStyle为我的Java项目(在设置 - >其他设置 - > Checkstyle的)我收到此错误信息:Intellij Checkstyle给出错误NoClassDefFoundError
java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:963)
at org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.java:391)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.tryCopyProperty(AutomaticBean.java:217)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.contextualize(AutomaticBean.java:249)
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:455)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:186)
at org.infernus.idea.checkstyle.service.cmd.OpCreateChecker.execute(OpCreateChecker.java:58)
at org.infernus.idea.checkstyle.service.cmd.OpCreateChecker.execute(OpCreateChecker.java:26)
at org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.executeCommand(CheckstyleActionsImpl.java:126)
at org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.createChecker(CheckstyleActionsImpl.java:56)
at org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.createChecker(CheckstyleActionsImpl.java:47)
at org.infernus.idea.checkstyle.checker.CheckerFactoryWorker.run(CheckerFactoryWorker.java:44)
它是熟悉的人?
您可能希望在https://github.com/checkstyle/checkstyle/issues报告此问题。 – CrazyCoder
由于这发生在IDEA内部,因此它们应该是您的第一个联系人,因为Checkstyle的发布版本包含'commons-collections',可以毫无问题地工作。 https://github.com/jshiell/checkstyle-idea – rveach
引发[Checkstyle-IDEA]问题(https://github.com/jshiell/checkstyle-idea/issues)。他们会想知道在命令行中运行Checkstyle时是否会发生这种情况。提供完整的配置文件。 –