Cassandra 3.0 and later require Java 8u40 or later

Nandakishore picture Nandakishore · Dec 21, 2015 · Viewed 13.7k times · Source

I'm trying to run cassandra 3.0 in datastax. But i'm getting an error saying Cassandra 3.0 and later require Java 8u40 or later.

I have installed java and moved the jdk1.8.0_65 to /usr/local/java and set JAVA_HOME to /usr/local/java/jdk1.8.0_65.

But I'm still facing the following error:

Cassandra 3.0 and later require Java 8u40 or later.

Answer

maczniak picture maczniak · Feb 2, 2016

I installed Cassandra 3.2 DataStax Distribution rpm on CentOS 7, and experienced the same problem. Cassandra startup script /etc/rc.d/init.d/cassandra finds java binary in the predefined path list only.

JVM_SEARCH_DIRS="/usr/lib/jvm/jre /usr/lib/jvm/jre-1.7.* /usr/lib/jvm/java-1.7.*/jre"

If your java binary is /usr/jdk64/jdk1.8.0_60/jre/bin/java, append /usr/jdk64/jdk1.8.0_60/jre to JVM_SEARCH_DIRS, or make /usr/lib/jvm/jre symlink for /usr/jdk64/jdk1.8.0_60/jre.