2016-08-04 4 views
0

я выступаю Project-Clean ... в Eclipse, Марс и получаю следующее сообщение об ошибкеНевозможно инициализировать модуль TreeWalker во время сборки в Eclipse,

Errors occurred during the build. 
    Errors running builder 'Checkstyle Builder' on project 'MyProject'. 
     cannot initialize module TreeWalker - Unable to instantiate 
     'RedundantThrows' class, it is also not possible to instantiate it as 
     com.puppycrawl.tools.checkstyle.checks.annotation.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.blocks.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.coding.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.design.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.header.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.imports.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.indentation.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.javadoc.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.metrics.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.modifier.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.naming.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.regexp.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.sizes.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.whitespace.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.checks.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.filters.RedundantThrows, 
     com.puppycrawl.tools.checkstyle.RedundantThrows. Please recheck that class name 
     is specified as canonical name or read how to configure short name usage 
     http://checkstyle.sourceforge.net/config.html#Packages. Please also recheck that 
     provided ClassLoader to Checker is configured correctly. 

плагин версии CheckStyle является 6,11. Не могли бы вы помочь мне разобраться, что может вызвать эту ошибку. Благодарю.

ответ

3

RedundantThrows check has been removed от Checkstyle. Просто удалите запись <module> для нее из вашего checkstyle.xml.