Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » problem in running my first JSP in eclipse
problem in running my first JSP in eclipse [message #187675] Wed, 07 February 2007 14:16 Go to next message
Eclipse User
Originally posted by: ssaravanan.indusrad.com

Hi,

I am new to Eclipse. when I run a JSP file, the following error I am
getting, though I had set JAVA_HOME variable correct in the Windows.


"........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............."


Could anyone help me out.

thanks
-Karthik
Re: problem in running my first JSP in eclipse [message #187715 is a reply to message #187675] Wed, 07 February 2007 16:12 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1309
Registered: July 2009
Senior Member
There isn't much detail to work with here so I'm guessing you are using
a server that requires a Sun JDK instead of a JRE from Sun or some other
vendor. The Sun JDK includes tools.jar which contains a Java compiler
which the server needs to compile JSPs. The compiler in tools.jar is
executed using the com.sun.tools.javac.Main class, which isn't available
in your environment.

Cheers,
Larry

karthik wrote:
> Hi,
>
> I am new to Eclipse. when I run a JSP file, the following error I am
> getting, though I had set JAVA_HOME variable correct in the Windows.
>
>
> "........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............."
>
>
> Could anyone help me out.
>
> thanks
> -Karthik
>
Re: problem in running my first JSP in eclipse [message #187762 is a reply to message #187715] Thu, 08 February 2007 06:28 Go to previous message
Eclipse User
Originally posted by: ssaravanan.indusrad.com

Hi,

Thanks for your advice. I got it by pointing the JDK installation dir in
the Eclipse for the Apache Tomcat Server. Previously, it was pointing to
the JRE.

Now, it is working.


thanks again
--Karthik
Previous Topic:Adding Generic runtime Configuration
Next Topic:shared lib
Goto Forum:
  


Current Time: Thu Oct 23 06:41:12 GMT 2014

Powered by FUDForum. Page generated in 0.01916 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software