Perhaps JAVA_HOME does not point to the JDK

来源:互联网 发布:mac如何快速进入屏保 编辑:程序博客网 时间:2024/04/29 17:32

Unable to find a javac compiler;  com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

 

解决方法:在Eclipse中Window->Preferences,找到Tomcat下的JVM Settings在ClassPath下添加

%JDK_HOMe% lib/dt.jar和%JDK_HOMe% lib/tools.jar

重新启动Tomcat即可。

原创粉丝点击