Home > Java > Tomcat下jsp程序错误:JAVA_HOME does not point to the JDK 解决方法

Tomcat下jsp程序错误:JAVA_HOME does not point to the JDK 解决方法

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

打开Configure Tomcat,选中JAVA选项,改动Java Classpath
在c:\Tomcat\bin\bootstrap.jar
后添加%JAVA_HOME%/lib/tools.jar就行了,如果%JAVA_HOME%不起作用,那就直接设定绝对路径,比如C:\j2sdk1.4.2_15\lib\tools.jar

No related posts.

Categories: Java Tags:
  1. No comments yet.
  1. No trackbacks yet.