I have been trying to setup elasticsearch in windows7 machine by following https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html I was able to download, unzip but when running ./elasticsearch, I get the below error,
Error: Could not find or load main class
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
Can someone point out where I am wrong ?
I have seen similar things in the past when the JAVA_HOME contains spaces in dir name. May be try to copy your jdk in another location like c:/java ?
But may be this is something else here
I'm also having the same problem on a Linux machine.
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)
There's no space in my JAVA_HOME dir name
Can you upgrade your jvm to 1.8.0_131
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?
I guess that changing JAVA_HOME should work
I'm able to run it now with JVM 1.8.0_131. Thanks.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.