eclipse中执行Ant脚本:Class not found: javac1.8
来源:互联网 发布:网络的弊辩论赛资料 编辑:程序博客网 时间:2024/06/06 04:05
最近把eclipse也升级到neon,java也同步升级到1.8,在eclipse中执行很久之前写的ant脚本(build.xml)时报错了:
Class not found: javac1.8
在命令行中执行ant脚本是正常的,因为我的电脑中安装了java1.6,1.7,1.8,但默认的版本是1.6,我知道我的ant脚本中指定了生成目标版本(target)是1.6。
在网上查了资料后,搞清楚了原因,原来是Ant版本太低,低于1.9,无法和java1.8兼容。于是到http://ant.apache.org/bindownload.cgi下载了1.10.1,解压到本地后,如下图修改了eclipse中的ant主目录参数,指定使用1.10.1。
再重新执行,恢复正常。
参考资料:
《Class not found: javac1.8”问题总结》
《 Could not find the main class: org.eclipse.ant.internal.launching.remote.InternalAntRunner》
阅读全文
0 1
- eclipse中执行Ant脚本:Class not found: javac1.8
- Ant: Class not found: javac1.8
- Ant: Class not found: javac1.8
- 在eclipse中进行nutch1.7二次开发通过ant编译build.xml出现Class not found javac1.8
- Eclipse使用Ant编译提示Class not found: javac1.8【转载】
- "Class not found: javac1.8"问题总结
- ant -- 解决运行时报“Class not found: javac1.8”的问题
- Eclipse中执行Ant脚本出现Could not find the main class的问题及解
- 搭建后台运行环境记录暨解决Kepler SR1支持jdk1.8和\ant\build.xml:115: Class not found: javac1.8错误
- 执行shell脚本中declare: not found
- 执行shell脚本中declare: not found
- eclipse Class Not Found
- ANT 编译失败:Class not found: org.eclipse.jdt.core.JDTCompilerAdapter
- eclipse中class file editor Source not found的解决方法
- Eclipse: class file editor: source not found
- eclipse class file editor source not found
- Class File Editor:Source not found(Eclipse中找不到系统函数)
- 解决 Android 在Eclipse 开发中 Class Not Found 的问题
- C# int.TryParse() 方法
- 关于Tomcat7.0.73的安全配置
- 最优化学习笔记
- C#连接Access数据库(详解)
- Maven Dependency Search Not Working in Eclipse
- eclipse中执行Ant脚本:Class not found: javac1.8
- 09-排序1 排序 (25分)
- jquery 多个swipper需要注意的问题
- 剑指offer 面试题23 从上到下打印二叉树
- 剑指offer——反转链表
- java基础冒泡,选择和快速排序
- 两个栈实现队列的功能
- SVN服务器搭建和使用(一)
- [Segment tree Beats! || 分块] Codeforces 793F Tinkoff Challenge