I have the same problem too. My solution is to edit the apache-cassandra-3.7 / bin / cassandra file. Below the line containing "#! / Bin / sh" (2nd line), you can put the line as shown below
JAVA_HOME="/path/of/your/jdk"
example:
JAVA_HOME="/opt/jdk1.8.0_101"
We hope that this solution will help you and other people.
Kentang
source share