我已经在CentOS 7服务器上下载了elesticsearch。 此服务器具有以下版本的java:
//Your dependency that includes the module with the duplicates.
compile('com.my.project:my-module:0.1') {
//exclude the offending module so there won’t be duplicates.
exclude module: 'support-v4'
//maybe you need to exclude a group also?...
exclude group: 'com.google.android.gms'
}
当我运行bin / elasticsearch时,它失败并出现以下错误:
openjdk version "1.8.0_141"
OpenJDK Runtime Environment (build 1.8.0_141-b16)
OpenJDK 64-Bit Server VM (build 25.141-b16, mixed mode)
正如你所看到的那样它无法找到java 8.但是java -version表明当前的java版本是1.8。
我已经尝试了很多,但无法解决这个问题。 请帮帮我。