$ cassandra Cassandra 2.0 and later require Java 7 or later.
OK, what\'s going on in that part of the init script?
java_ver_output=`\
To resolve this problem I changed $JAVA_HOME environment variable to the path I found it from:
System Preferences -> Java -> java (tab in Java Control Panel) -> View -> Path
I had two version of java and the default one was the old version of java.