"Unable to find a javac compiler"
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lee_Huque
Posted On:   Thursday, February 1, 2007 10:11 PM

Hi, I am new to JSP and am trying to learn how to get it setup and runnning with tomcat.

When I try to run load a simple jsp page from localhost I the error:

"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 searched around and people say to copy the tools.jar to
file to %JAVA_HOMElib, but I looked and I only have a tools.pack file not a tools.jar file. Is there someway to upack it in windows?

thanks!

Re: "Unable to find a javac compiler"

Posted By:   Anonymous  
Posted On:   Friday, February 2, 2007 04:11 AM

But do you have the Java JDK installed on your computer? If so, you have to define an environment variable (right click on My Computer->Properties->Advanced->Environment Variables) named JAVA_HOME pointing to the directory you have the JDK installed. Maybe you have it, but it cannot contain spaces (like in c:Program FilesJava), so you'll need to go to a console and make a dir /x to see the "DOS name" of the directory.
About | Sitemap | Contact