• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to run simple JSP script

 
Joe Tseng
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Guido Schoepp
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have your JAVA_HOME environment variable set?

Guido
 
Jeremy Wilson
Ranch Hand
Posts: 166
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joe Tseng
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK I did the copying of the tools.jar to common\lib and it works now. Thx.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic