今晚使用checkstyle在eclipse里面通过ant检查项目java代码时,遇到以下的异常: [CheckStyleTask] Running Checkstyle 5.5 on 159 files [CheckStyleTask] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST [CheckStyleTask]
今晚使用checkstyle在eclipse里面通过ant检查项目java代码时,遇到以下的异常:
[CheckStyleTask] Running Checkstyle 5.5 on 159 files
[CheckStyleTask] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[CheckStyleTask] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[CheckStyleTask] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
Google了一下,网上说是CLASS_PATH出错了,也没明白怎么出错了,又有人说是使用了旧版本的antlr库,盯着天花板想了想,前几天确实将Ant从eclipse的plugin 1.7.1替换成了单独的1.8.2,于是,嗯,就解决问题了。下面详细记录下我的环境
Eclipse 3.5 Galileo
Apache Ant 1.8.2
解决办法
按照Ant自带的安装教程 %ANT_HOME%/docs/manual/install.html上所说的设置好Ant的class path信息,以Eclipse 3.5 Galileo为例
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号