|
Re: simple web app on tomcat cannot find JDK? [message #163995 is a reply to message #163991] |
Wed, 15 March 2006 19:30 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
Hi Brian,
That error message is from Tomcat, which doesn't know it is being
invoked from Eclipse and JAVA_HOME doesn't apply. In the Servers view,
double-click on the Tomcat 4.1 server. In the server configuration
editor, click the "Edit" link to the right of the Runtime field.
Make sure what is selected in the JRE field is actually a JDK. This
error suggests that the current selection is just a JRE, since this is
the Java runtime that will be used to run Tomcat.
Cheers,
Larry
Brian wrote:
> I'm trying to move to Eclipse from WSAD. I've updated to Eclipse 3.1.2
> and WTP 1.0.1. I'm targetting tomcat 4.1 because our production
> environment is Websphere 5, which limits us to java 1.3.
>
> I'm trying to get started with just a simple web app in Ecplise and
> deploying it to tomcat. When I try to view a simple index.jsp for my
> webapp, tomcat says it can't compile the jsp with the following 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
>
> JAVA_HOME does indeed point to the JDK, and when I run tomcat by itself,
> it works fine. I've even got axis to run on tomcat fine.
>
> What am I missing?
>
|
|
|
Re: simple web app on tomcat cannot find JDK? [message #164162 is a reply to message #163995] |
Fri, 17 March 2006 07:41 |
Eclipse User |
|
|
|
Originally posted by: eric.benavente.interactive-systems.de
I also had this problem a few days ago.
Another way to solve it is to give tomcat a copy of the tools.jar, which
is the jar where the javac is. Or you add the location of tools.jar to
your CLASSPATH.
cheers,
e.
|
|
|
Powered by
FUDForum. Page generated in 0.02956 seconds