Error: Could not find or load main class
org.elasticsearch.tools.JavaVersionChecker
Elasticsearch requires at least Java 8 but your Java version from C:\Program
Files\Java\jdk1.8.0_131/bin/java does not meet this requirement
I have verified Java versions installed and they look fine,
$ java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
$ javac -version javac 1.8.0_131
I'm also having the same problem on a Linux machine.
$ ./elasticsearch
Elasticsearch requires at least Java 8 but your java version from /path/to/java does not meet this requirement
$ java -version
java version "1.8.0_74"
Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)
I've restrictions and am not allow to upgrade my JVM, however I've JVM 1.8.0_131 in another directory to use. Is there a way to config elasticsearch to point to my 1.8.0_131 JVM directory instead of going to my default?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.