您的位置:首页 > 编程语言 > Java开发

ant 解决com.sun.tools.javac.Main is not on the classpath的问题

2014-02-17 18:03 260 查看
在ant打包时报错:

解决com.sun.tools.javac.Main is not on the classpath的问题

com.sun.tools.javac.Main is not on the classpath.

Perhaps JAVA_HOME does not point to the JDK.

It is currently set to "C:\Program Files\Java\jre6"

遇到这种情况时直接将C:\Program Files\Java\jdk1.6.0_17\lib中的tools.lib拷贝到C:\Program Files\Java\jre6\lib中即可。

转自:http://hi.baidu.com/huaigangkang/item/eff12a3ee4cdb6ba134b1498
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐