Java home autodiscovery add-on

2002-02-15 Thread GOMEZ Henri
What about adding this part in tomcat.sh (TC 3.3) and catalina.sh/jasper.sh to help them discover JAVA_HOME on at least Linux systems ? +if [ -z $JAVA_HOME ]; then +# Search for java in PATH +JAVA=`which java` +if [ -z $JAVA ] ; then +JAVA_BINDIR=`dirname ${JAVA}` +

Re: Java home autodiscovery add-on

2002-02-15 Thread Christopher K. St. John
GOMEZ Henri wrote: What about adding this part in tomcat.sh (TC 3.3) and catalina.sh/jasper.sh to help them discover JAVA_HOME on at least Linux systems ? If someone forgets to set JAVA_HOME and has multiple JDK's installed, they could get a suprise. I suspect most non-beginners would

Re: Java home autodiscovery add-on

2002-02-15 Thread Patrick Luby
Henri, GOMEZ Henri wrote: What about adding this part in tomcat.sh (TC 3.3) and catalina.sh/jasper.sh to help them discover JAVA_HOME on at least Linux systems ? +if [ -z $JAVA_HOME ]; then +# Search for java in PATH +JAVA=`which java` +if [ -z $JAVA ] ; then +

RE: Java home autodiscovery add-on

2002-02-15 Thread GOMEZ Henri
What about adding this part in tomcat.sh (TC 3.3) and catalina.sh/jasper.sh to help them discover JAVA_HOME on at least Linux systems ? If someone forgets to set JAVA_HOME and has multiple JDK's installed, they could get a suprise. I suspect most non-beginners would rather see an error

Re: Java home autodiscovery add-on

2002-02-15 Thread Christopher K. St. John
GOMEZ Henri wrote: What about adding this part in tomcat.sh (TC 3.3) and catalina.sh/jasper.sh to help them discover JAVA_HOME on at least Linux systems ? If someone forgets to set JAVA_HOME and has multiple JDK's installed, they could get a suprise. That's why you could still

RE: Java home autodiscovery add-on

2002-02-15 Thread GOMEZ Henri
In Tomcat 4.0.2 and later, the above code would, I believe, fit into the bin/setclasspath.sh script. This script, which already checks that your $JAVA_HOME contains a java, javac, and jdb command, would extend that functionality. BTW, setclasspath.sh is source by all the executable Unix scripts

RE: Java home autodiscovery add-on

2002-02-15 Thread GOMEZ Henri
Christopher, Did you take a look at my scripts ? tomcat3 starter : #!/bin/sh # # Wrapper script for Tomcat, to be sure it will allways # be run with correct user profile (tomcat by default) # # derived from stuff in tomcat.init # # Gomez Henri [EMAIL PROTECTED] # Keith Irwin [EMAIL PROTECTED]

Re: Java home autodiscovery add-on

2002-02-15 Thread Christopher K. St. John
GOMEZ Henri wrote: Did you take a look at my scripts ? I thought I did, although I concentrated on the proposed changes to catalina.sh. This config stuff came from discution on this this list with Keith Irwin and Nicolas Mailhot :) It looks like I missed some background discussion,

Re: Java home autodiscovery add-on

2002-02-15 Thread Patrick Luby
Henri, GOMEZ Henri wrote: Yes bin/setclasspath.sh does many things and could be used. My advice it that the name is too generic and should be renamed when you install TC 3.x/4.x in a FHS way, ie execs in /usr/bin, datas in /var/tomcat4 or /usr/share/tomcat4. May be renamed to