You may recall that last week, I was going to great lengths to try and get a CL to automatically locate a Java 1.6 JVM, and set it in the job-level JAVA_HOME environment variable.

This is for a CL that starts Tomcat 7 (which requires Java 1.6 at minimum.

In resolving the crisis over the customer box on which Tomcat wasn't starting, I found that the "" script for Tomcat needed these lines (preferably in a separate "" file, rather than directly in ""):

# Java 6 settings if needed export -s JAVA_HOME=/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit/jre export -s CATALINA_HOME=/wintouch/tomcat export -s JAVA_OPTS="-Dos400.awt.native=true -Djava.awt.headless=true -Djava.version=1.6 -Xms256m -Xmx512m"

But it seems that the very first line of this block is overriding the JAVA_HOME environment variable I'd so laboriously set in the CL program.

Which makes me wonder (1) if there's any actual reason to set JAVA_HOME both places, and (2) if I could set CATALINA_HOME and JAVA_OPTS in the CL, instead of the shell script, which would greatly simplify the installation.

Can anybody either shed some light on this, or point me to an appropriate document that would do so?


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.