Reputation: 298
I am trying to install cassandra, I have done the following steps
MacBook-Pro:bin rodo$ ./cassandra MacBook-Pro:bin rodo$ [0.002s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:./../logs/gc.log instead. Unrecognized VM option 'UseParNewGC' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
download what CASSANDRA asks and at the moment of running it still appears to me
http://cassandra.apache.org/doc/latest/getting_started/installing.html#prerequisites
Upvotes: 0
Views: 249
Reputation: 31269
The current latest released version of Cassandra (3.11.4) only supports Java 8. Java 8 supports the UseParNewGC JVM option.
You have installed Java version 10 or later, which doesn't support this JVM option.
You can find it in the pre-requisites of Cassandra (http://cassandra.apache.org/doc/latest/getting_started/installing.html#prerequisites):
Prerequisites
The latest version of Java 8, either the Oracle Java Standard Edition 8 or OpenJDK 8. To verify that you have the correct version of java installed, type java -version.
You need to downgrade your Java, or you need to use the unreleased version 4 branch of Cassandra.
Upvotes: 1