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

来源:互联网 发布:电脑怎么用手机的网络 编辑:程序博客网 时间:2024/04/30 05:35
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_11"
 

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

如果还是不行,那请配置一下JDK的环境变量,并关闭IDE然后重新打开。


转自:http://blog.csdn.net/lhjlhj123123/article/details/5607106

1 0
原创粉丝点击