tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Paul <antonypau...@gmail.com>
Subject Re: Unable to find a javac compiler error
Date Tue, 19 Oct 2004 06:44:11 GMT
Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpath. Usually
this is placed in the TOMCAT_HOME\common\lib directory. If it is not
there then copy it to there from JAVA_HOME\lib directory. Restart
Tomcat and try the JSP page.

rgds
Antony Paul


On Mon, 18 Oct 2004 17:38:07 +0200, Andrea Mennini <andrea@mennini.org> wrote:
> Hi,
> 
> I'm trying to run this silly hello.jsp, just to be sure tomcat 5.0.28 is
> running under win2k:
> 
> =======
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <!--
> Simple HTML file to test server setup and configuration.
> 
> Taken from More Servlets and JavaServer Pages
> from Prentice Hall and Sun Microsystems Press,
> http://www.moreservlets.com/.
> (C) 2002 Marty Hall; may be freely used or adapted.
> -->
> <HTML>
> <HEAD><TITLE>JSP Test</TITLE></HEAD>
> <BODY BGCOLOR="#FDF5E6">
> <H1>JSP Test</H1>
> Time: <%= new java.util.Date() %>
> </BODY>
> </HTML>
> =======
> 
> When I run it, I receive a message like this one:
> 
> =======
> 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've got a command line and typed %JAVA_HOME%\bin\javac, and javac is run.
> 
> What am I doing wrong?
> 
> TIA
> 
> --
> 
> Andrea
> 
> ICQ:5459894
> Registered Linux User #24583
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message