unable to find javac compiler;com.sun.tools.javac.Mainisnotontheclasspath的问题的解决

 ------------------------------------------------------------------------
 ant解决com.sun.tools.javac.Mainisnotontheclasspath的问题
 在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中即可。
 这种方法不能解决我的问题,下面这一篇给了我一点灵感,最终让我解决了问题,哈哈~

posted @ 2015-04-27 14:34  si_sier  阅读(369)  评论(0编辑  收藏  举报