Changing Tomcat configuration  
Author Message
Jerry Gaspard





PostPosted: 2005-10-9 12:28:00 Top

java-programmer, Changing Tomcat configuration Hello everyone having a slight issue with the java.home variable for
tomcat. It is pointing at the JRE instead of the JDK and I have no idea
where it is set at. If anyone knows where I can change it please inform me.

Thanks,
Jerry
 
Dave Glasser





PostPosted: 2005-10-9 13:12:00 Top

java-programmer >> Changing Tomcat configuration Jerry Gaspard <email***@***.com> wrote on Sun, 09 Oct 2005
04:28:26 GMT in comp.lang.java.help:

>Hello everyone having a slight issue with the java.home variable for
>tomcat. It is pointing at the JRE instead of the JDK and I have no idea
>where it is set at. If anyone knows where I can change it please inform me.

I think the java.home system property is set by the JVM itself, not
Tomcat. You need to change the setting for which JVM it uses. If
you're running it as a Windows service, right-click the system tray
icon, choose "Configure..." and then the Java tab and you should see
the place to set it. (This is for Tomcat 5.5.9). I think you can also
do this through the registry.

If you're launching Tomcat with a batch file or a shell script, you'll
have to dig through that script to find out how to change the JVM that
gets launched.


--
Check out QueryForm, a free, open source, Java/Swing-based
front end for relational databases.

http://qform.sourceforge.net

If you're a musician, check out RPitch Relative Pitch
Ear Training Software.

http://rpitch.sourceforge.net
 
Roedy Green





PostPosted: 2005-10-9 15:06:00 Top

java-programmer >> Changing Tomcat configuration On Sun, 09 Oct 2005 04:28:26 GMT, Jerry Gaspard
<email***@***.com> wrote or quoted :

>Hello everyone having a slight issue with the java.home variable for
>tomcat. It is pointing at the JRE instead of the JDK and I have no idea
>where it is set at. If anyone knows where I can change it please inform me.

see http://mindprod.com/jgloss/environment.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
 
 
HalcyonWild





PostPosted: 2005-10-11 0:13:00 Top

java-programmer >> Changing Tomcat configuration
Jerry Gaspard wrote:

> Hello everyone having a slight issue with the java.home variable for
> tomcat. It is pointing at the JRE instead of the JDK and I have no idea
> where it is set at. If anyone knows where I can change it please inform me.


If you are using Unix/LInux, check your bash_profile or .profile shell
script. If it is calling any other user defined shell script, check
that too. Check for export JAVA_HOME="whatever", or setenv JAVA_HOME.
See what it is setting java_home to.

Note that weblogic 7 needs a different jdk. ie 1.3 while weblogic 8
needs another version, jdk1.4.x.
Tomcat 5 needs jdk1.4.x while tomcat 5.5 needs jdk1.5
Which version of tomcat are you using, under which OS. For windows,
read David Glassers post.