Ensure java executable is on the path.

Patch by Angelo Polo; reviewed by Aleksei Zotov, brandonwilliams and
edimitrova for CASSANDRA-14325
This commit is contained in:
Angelo Polo 2021-07-16 07:54:35 -05:00 committed by Brandon Williams
parent e8f961f403
commit 75ddf76801
3 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
3.0.25:
* Ensure java executable is on the path (CASSANDRA-14325)
* Make speculative retry parameter case-insensitive for backward compatibility with 2.1 (CASSANDRA-16467)
* Push digest mismatch exceptions to trace (CASSANDRA-14900)
* Support long names in nodetool output (CASSANDRA-14162)

View File

@ -98,7 +98,7 @@ if [ -n "$JAVA_HOME" ]; then
fi
done
else
JAVA=java
JAVA=`command -v java 2> /dev/null`
fi
if [ -z $JAVA ] ; then

View File

@ -36,7 +36,7 @@ fi
if [ -n "$JAVA_HOME" ]; then
JAVA="$JAVA_HOME/bin/java"
else
JAVA=java
JAVA=`command -v java 2> /dev/null`
fi
if [ -z "$CASSANDRA_CONF" -o -z "$CLASSPATH" ]; then