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

来源:互联网 发布:淘宝开店经营地址 编辑:程序博客网 时间:2024/04/19 07:19

在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

0 0
原创粉丝点击