You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ne...@swisslab.de on 2007/02/10 09:17:30 UTC

Tomcat 5.5.20 on Windows - Service and App

 Hello,

I ve downloaded two Windows versions of Tomcat. First the Serviceinstaller,
second the 'normal' zip archive. 
Than I installed the Java JRE (!) on my system.

When starting the service installation of Tomcat the programm runs fine.
When starting Tomcat by hand using 'bin/startup run' I get the message:
JAVA_HOME should point to a JDK not a JRE

Why is it that I can start Tomcat as a service using the JRE only, but fail
when using the 'normal' Tomcat App?

Thanks,
Jan 

---------------------------------------------------------------------
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: Tomcat 5.5.20 on Windows - Service and App

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: news@swisslab.de [mailto:news@swisslab.de] 
> Subject: Tomcat 5.5.20 on Windows - Service and App
> 
> When starting Tomcat by hand using 'bin/startup run' I get 
> the message:
> JAVA_HOME should point to a JDK not a JRE

Use JRE_HOME, not JAVA_HOME, if you have only a JRE installed.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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: Tomcat 5.5.20 on Windows - Service and App

Posted by Len Popp <le...@gmail.com>.
When you run Tomcat with startup.bat it uses the JAVA_HOME environment
variable to find the JAVA JVM. You must set JAVA_HOME to the JVM you
want to use.

When you run it as a service, the service wrapper gets the JVM
location and other settings from the registry. You can change these
using the Configure Tomcat program.
-- 
Len

On 2/10/07, news@swisslab.de <ne...@swisslab.de> wrote:
>  Hello,
>
> I ve downloaded two Windows versions of Tomcat. First the Serviceinstaller,
> second the 'normal' zip archive.
> Than I installed the Java JRE (!) on my system.
>
> When starting the service installation of Tomcat the programm runs fine.
> When starting Tomcat by hand using 'bin/startup run' I get the message:
> JAVA_HOME should point to a JDK not a JRE
>
> Why is it that I can start Tomcat as a service using the JRE only, but fail
> when using the 'normal' Tomcat App?
>
> Thanks,
> Jan
>
> ---------------------------------------------------------------------
> 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