tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Farrow" <marc.far...@gmail.com>
Subject Re: JAVA_HOME / JRE_HOME still necessary?
Date Wed, 10 May 2006 13:29:53 GMT
Did I reply to the wrong thread?  Or did I reply to a high-jacked thread?  I
am sorry.

On 5/10/06, Marc Farrow <marc.farrow@gmail.com> wrote:
>
>  The question is:  Where will Tomcat be running?
>
> If Tomcat is only running on one server, then only that server needs to be
> set up.  If you are going to be running Tomcat on each machine, then
> modify/create the start up scripts to set the JAVA_HOME/JAVA_JRE paths in
> the script.  (Easily done on Windows).
>
>
>
> On 5/10/06, Stefan Wachter <Stefan.Wachter@gmx.de> wrote:
> >
> > Hi Tim (et al.),
> >
> > ok, I understand the necessity for using different JDKs. I thought that
> > adjusting the JAVA_HOME environment variable for certain situations
> > might be the same effort as adjusting the PATH environment variable.
> >
> > Maybe an option would be to use the JAVA_HOME/JRE_HOME variables if they
> > are present and to rely on the path if they are absent?
> >
> > What about tools.jar? Is it needed?
> >
> > Grettings,
> > --Stefan
> >
> > PS: I have to write a setup for an application that uses Tomcat. Tomcat
> > is running for end users on their local machines and not on an
> > administrated server. I think the average end user should not be forced
> > to set an environment variable.
> >
> >
> > Tim Lucia wrote:
> > > What about multiple JREs or JDKs on your system?  Unlike Microsoft
> > products,
> > > you can actually have multiple versions of Java on your system
> > coexisting
> > > peacefully.  Try installing the public beta of IE 7--and you are now
> > running
> > > beta software in the core of your OS (assuming of course you have a
> > Windows
> > > desktop ;-)
> > >
> > > Also, for security reasons, daemon processes and/or services should
> > not
> > > require or rely on PATH variables.
> > >
> > > Tim
> > >
> > > -----Original Message-----
> > > From: Stefan Wachter [mailto:Stefan.Wachter@gmx.de]
> > > Sent: Wednesday, May 10, 2006 7:13 AM
> > > To: users@tomcat.apache.org
> > > Subject: JAVA_HOME / JRE_HOME still necessary?
> > >
> > > Hi all,
> > >
> > > wouldn't it be nice if Tomcat does not need the JAVA_HOME or JRE_HOME
> > > environment variable? After installation of the SUN-JDK these
> > > environment variables are not set. Java is in the "path" and that's
> > it.
> > >
> > > While starting Tomcat the script "setclasspath.bat " checks if one of
> > the
> > > environment variables JAVA_HOME or JRE_HOME is set. Then one of these
> > > variables is used to construct the execution commands and to set the
> > > CLASSPATH environment variable such that is contains tools.jar.
> > >
> > > As far as the execution command is concerned using one of the
> > > HOME-variables is not necessary as long as Java is in the path.
> > >
> > > I wonder why the classpath must contain tools.jar . Tomcat 5.5 uses
> > the
> > > Eclipse Java compiler for compiling JSPs. Therefore I think that
> > > tools.jar is no more needed.
> > >
> > > Patching "setclasspath.bat" such that it no more relies on one of the
> > > HOME variables I started Tomcat. It seems to work as usual.
> > >
> > > Thanks for your attention,
> > > --Stefan
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>
> --
>
> Marc Farrow
>



--
Marc Farrow
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message