I recently installed Tomcat and Eclipse and used the Sysdeo Eclipse plugin to have it integrate with Tomcat. I created a JSP file, tried to access it, and I got an error:
Nov 11, 2004 11:59:45 AM org.apache.jasper.compiler.Compiler generateClass SEVERE: Javac exception 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
I have no idea how to fix this; is this a Tomcat or Eclipse config issue? I looked in my Windows CLASSPATH entry and it was fine. I would think Tomcat wouldn't run if java wasn't visible.
I have had this problem in some instances where even setting java_home did not appear to work. One quick and dirty solution is to place the tools.jar from the jdk installation into the tomcat common libs folder, I know this is not the best way to do this but it should get the job done.
posted 14 years ago
OK I did the copying of the tools.jar to common\lib and it works now. Thx.