0
我在AWS RHEL服務器中安裝了elasticsearch。在運行elasticsearch的時候它正在低於懷疑。我嘗試了所有的解決方案,但沒有幫助。任何人都可以給我一個解決方案。錯誤:無法找到或加載主類org.elasticsearch.tools.JavaVersionChecker
$ /usr/share/elasticsearch/bin/elasticsearch
Error: Could not find or load main class org.elasticsearch.tools.JavaVersionChecker Elasticsearch requires at least Java 8 but your Java version from
/usr/java/jdk1.8.0_144/bin/java does not meet this requirement
$ java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
`
$ echo $JAVA_HOME
/usr/java/jdk1.8.0_144