ant 出现 Unable to find a javac compiler

上一篇 / 下一篇  2014-11-25 16:47:51 / 个人分类:ant

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:\ProgramFiles\Java\jre6\lib中即可。

  

转自 ifaithu 的博客


TAG: Ant ant

 

评分:0

我来说两句

我的栏目

日历

« 2024-04-25  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 4459
  • 日志数: 3
  • 建立时间: 2014-11-25
  • 更新时间: 2015-03-06

RSS订阅

Open Toolbar