problem in running my first JSP in eclipse [message #187675] |
Wed, 07 February 2007 14:16  |
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   |
Eclipse User |
|
|
|
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  |
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
|
|
|
Powered by
FUDForum. Page generated in 0.03244 seconds