ant中com.sun.tools.javac.Main is not on the classpath问题的解决方案
来源:互联网 发布:世界各国网络安全部队 编辑:程序博客网 时间:2024/04/25 10:11
以上问题出现在使用eclipse编写ant脚本时使用javac标签时,在网上查询大量资料后都指出是编译器JDK版本设置混乱的原因。本人经过试验后总结如下两点:
1、问题指出JAVA_HOME没有指向jdk,针对此我们需要检查自己电脑上的环境变量JAVA_HOME,看是否出错。
2、在反复检查JAVA_HOME路径没有出错后,还是出现以上的问题时,我们需要检查ant的classpath路径,看是否是classpath的问题。具体做法如下:
Window->preferences->Ant->Runtime->Classpath->Ant Home Entries(Default),然后选择选择下方的恢复默认“Restore Defaults”,选择“apply”,最后选择“ok”,
问题解决。本人是第二种情况,有什么问题可以给我留言。
0 0
- ant中com.sun.tools.javac.Main is not on the classpath问题的解决方案
- ant 解决com.sun.tools.javac.Main is not on the classpath的问题
- ant 解决com.sun.tools.javac.Main is not on the classpath的问题
- ant报错: 解决com.sun.tools.javac.Main is not on the classpath的问题
- 解决com.sun.tools.javac.Main is not on the classpath的问题
- 解决com.sun.tools.javac.Main is not on the classpath的问题
- 解决com.sun.tools.javac.Main is not on the classpath的问题
- 解决com.sun.tools.javac.Main is not on the classpath的问题
- 在Eclipse中 执行Ant Api 报错 Java: ant com.sun.tools.javac.Main is not on the classpath
- 解决com.sun.tools.javac.Main is not on the classpath / Unable to find a javac compiler 的问题
- com.sun.tools.javac.Main is not on the classpath.错误解决方法
- 问题:Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to the JDK
- Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME
- com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to the JDK
- com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK.
- 【cocos2dx】编译安卓平台遇到报错 com.sun.tools.javac.Main is not on the classpath
- Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK(转
- Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK(转
- poj 3714 Raid 分治法求平面最近点对
- BroadcastReceiver简单实例
- 《iOS总结》数据持久化-MickyChiang
- 已知rand7() 可以产生1~7的7个数(均匀概率),利用rand7()产生rand10()1~10(均匀概率)
- 读取文件夹下所有的文件
- ant中com.sun.tools.javac.Main is not on the classpath问题的解决方案
- MIL 编程环境设置
- Euler: Amicable numbers
- controller返回json到页面,IE提示下载问题
- Pig内置函数
- java 单例模式
- MARYLAND/Software Security 摘要与感悟(overview quiz)
- 《C语言及程序设计》实践项目——输出小星星
- POJ 1006: Biorhythms