Changeset 20650 for gsdl


Ignore:
Timestamp:
2009-09-21T13:00:50+12:00 (15 years ago)
Author:
kjdon
Message:

findjava.sh changed to set javahome as well as javapath. Then gs2-server.sh adds javahome/bin to path before running Server2. Otherwise apache may use the wrong java, and lucene searching will fail if a lesser version has been used

Location:
gsdl/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/findjava.sh

    r20636 r20650  
    1515    # There is a JAVA_HOME already set, we're going to try using that
    1616    javapath="$JAVA_HOME/bin/java"
    17 
     17    javahome="$JAVA_HOME"
    1818    # Print a warning that we're going to use whatever JAVA_HOME is set (fingers crossed)
    1919    if [ "x$gslang" = "x" -o "$gslang" = "en" ]; then
     
    7575   
    7676    javapath="`"$SEARCH4J_EXECUTABLE" -e -p "$HINT" -m $MINIMUM_JAVA_VERSION`"
     77    javahome="`"$SEARCH4J_EXECUTABLE" -p "$HINT" -m $MINIMUM_JAVA_VERSION`"
    7778
    7879    if [ "$?" != "0" ]; then
  • gsdl/trunk/gs2-server.sh

    r20635 r20650  
    103103        export CLASSPATH
    104104        echo "  - Adjusted CLASSPATH"
    105 
    106     else
    107         echo "  - CLASSPATH already correct"
    108105    fi
    109106
     
    116113        exit 1;
    117114    fi
     115    export PATH=$javahome/bin:$PATH
    118116
    119117    if [ "x$silent" == "x" -o "x$silent" != "xtrue" ]; then
    120118        # verbose mode, show all output, but then we can't run the server interface in the background
     119   
    121120    "$javapath" org.greenstone.server.Server2 "$GSDLHOME" "$serverlang" $*
    122121    else
Note: See TracChangeset for help on using the changeset viewer.