Great question — answering as the UphillTech team:
A simple solution for that is to set JAVA_HOME variable to point to your java installation. The cassandra script should generally autodeetect your java location on PATH , but if it doesn't happen, you can help with setting JAVA_HOME explicitly: export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/ Note: you must set JAVA_HOME not JAVA . JAVA variable is used internally by the cassandra launch scripts, but you're not supposed to set it. JAVA is set by this code snippet in cassandra.in.sh : # Use JAVA_HOME if set, otherwise look for java in PATH if [ -n "$JAVA_HOME" ]; then # Why we can't have nice things: Solaris combines x86 and x86_64 # installations in the same tree, using an...
Full answer by Piotr Kolaczkowski: https://askubuntu.stackexchange.com/a/1408793 (CC BY-SA 4.0).
Need it done for your business? UphillTech.