Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » simple web app on tomcat cannot find JDK?
simple web app on tomcat cannot find JDK? [message #163991] Wed, 15 March 2006 19:18 Go to next message
Brian is currently offline BrianFriend
Messages: 2
Registered: July 2009
Junior Member
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 #163995 is a reply to message #163991] Wed, 15 March 2006 19:30 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:How can I distribute (web) projects without CVS/SVN?
Next Topic:how to configure was6.0 with eclipse wtp
Goto Forum:
  


Current Time: Fri Apr 19 20:01:28 GMT 2024

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

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

Back to the top