jdk重装后com.sun.tools.javac.Main is not on the classpath的问题 .

在重装了JDk之后,在编译工程的时候出现如下错误:

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\jre1.5.0_04"

遇到这种情况时直接将C:/Program Files/Java/jdk1.5.0_11/lib中的tools.lib

       拷贝到C:/Program Files/Java/jre1.5.0_11/lib中即可。

posted @ 2013-12-02 13:57  溪山晴雪  阅读(786)  评论(0编辑  收藏  举报