You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Leo Donahue - PLANDEVX <Le...@mail.maricopa.gov> on 2006/07/28 02:01:28 UTC

RE: [SPAM:] - tomcat , wondoze , Unable to find a javac compiler; - Email has different SMTP TO: and MIME TO: fields in the email addresses

 
>From the Tomcat 5.0 setup page:
http://tomcat.apache.org/tomcat-5.0-doc/setup.html


"Java location: The installer will use the registry or the JAVA_HOME
environment variable to determine the base path of the JDK or a JRE. If
only a JRE (or an incorrect path) is specified, Tomcat will run but will
be unable to compile JSP pages at runtime. Either all webapps will need
to be precompiled (this can be easily done using the Tomcat deployer),
or the lib\tools.jar file from a JDK installation must be copied to the
common\lib path of the Tomcat installation."

Using the JAVA_HOME on my windoze box didn't work and I ultimately
copied the tools.jar file, which worked.  Now I just have to remember I
did that in the future.

Leo D

-----Original Message-----
From: Randy Paries [mailto:rtparies@gmail.com] 
Sent: Thursday, July 27, 2006 11:19 AM
To: users@tomcat.apache.org
Subject: [SPAM:] - tomcat , wondoze , Unable to find a javac compiler; -
Email has different SMTP TO: and MIME TO: fields in the email addresses

unfortuntaly i have to setup tomcat on windoze.
i have it working on tons of linux boxs, and this has been a royle pain.
Ok enough whinning.

so when i try to display a jsp is get the 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


in the tomcat monitor i have "Use default" selected

in the XP env vars i have
CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib JAVA_HOME = C:\Program
Files\Java\jdk1.5.0_04

so what have i missed

Thanks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: [SPAM:] - tomcat , wondoze , Unable to find a javac compiler; - Email has different SMTP TO: and MIME TO: fields in the email addresses

Posted by Raju Balugu <ra...@gmail.com>.
Hi My comments in line with <<>>

On 7/28/06, Leo Donahue - PLANDEVX <Le...@mail.maricopa.gov> wrote:
>
>
> From the Tomcat 5.0 setup page:
> http://tomcat.apache.org/tomcat-5.0-doc/setup.html
>
>
> "Java location: The installer will use the registry or the JAVA_HOME
> environment variable to determine the base path of the JDK or a JRE. If
> only a JRE (or an incorrect path) is specified, Tomcat will run but will
> be unable to compile JSP pages at runtime. Either all webapps will need
> to be precompiled (this can be easily done using the Tomcat deployer),
> or the lib\tools.jar file from a JDK installation must be copied to the
> common\lib path of the Tomcat installation."
>
> Using the JAVA_HOME on my windoze box didn't work and I ultimately
> copied the tools.jar file, which worked.  Now I just have to remember I
> did that in the future.
>
> Leo D
>
> -----Original Message-----
> From: Randy Paries [mailto:rtparies@gmail.com]
> Sent: Thursday, July 27, 2006 11:19 AM
> To: users@tomcat.apache.org
> Subject: [SPAM:] - tomcat , wondoze , Unable to find a javac compiler; -
> Email has different SMTP TO: and MIME TO: fields in the email addresses
>
> unfortuntaly i have to setup tomcat on windoze.
> i have it working on tons of linux boxs, and this has been a royle pain.
> Ok enough whinning.
>
> so when i try to display a jsp is get the 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
>
>
> in the tomcat monitor i have "Use default" selected
>
> in the XP env vars i have
> CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib JAVA_HOME = C:\Program
> Files\Java\jdk1.5.0_04


<<try to remove the spaces in program files (lets say
progra~1\java\jdk1.5.0_04)
and also copy the tools.jar file which is stated in above>>

<<Now its going to compile the jsp files default jdk1.5(lets say u have the
jdk1.4 ,u can make use of that also by setting the web.xml file compiler
entry>>

Regards
Raju

so what have i missed
>
> Thanks
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>