文章目录
运行Ant Build 出现的问题
有时候 Run As —> Ant Build
会出现 Ant: Class not found: javac1.8
的报错,见上图
分析问题:是否是eclipse中的ant版本和java的版本不匹配呢?
解决方法
是我的解决方法(当时)
- 1、下载一个最新版本的ant,解压到本地相应目录下,我下载的是apache-ant-1.10.3
- 2、在eclipse中, Windows --> preferences --> Ant --> run time
点击ant home
, 将路径制定到下载的 ant
目录下
- 3、重新 Run As —> Ant Build 即可。