Elasticsearch安装:错误'jvm.dll错过'服务器'JVM [英] Elasticsearch installation : Error missing 'server' JVM at ...jvm.dll

查看:891
本文介绍了Elasticsearch安装:错误'jvm.dll错过'服务器'JVM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照此链接中的步骤下载了elasticsearch并解压缩后:

After having downloaded elasticsearch and unzipped it following the steps in this link:

在Windows上安装弹性搜索

我收到以下错误:

Error: missing 'server' JVM at 'C:\Program Files (x86)\Java\jre1.8.0_131\bin\server\jvm.dll'.
Please install or use the JRE or JDK that contains these missing components.

注意:我还必须按照分辨率

我应该更改.config文件中的内容?也许这一行?

Should I change something in the .config file? Maybe this line?

 # force the server VM (remove on 32-bit client JVMs)
 -server


推荐答案

设置 JAVA_HOME 环境变量指向 JDK 8 安装的路径。

Set your JAVA_HOME environment variable to point to the path of your JDK 8 installation.

您可以在命令行上执行此操作,如下例所示说明:

You can do this on the command line as the example below illustrates:

SET JAVA_HOME="C:\Program Files (x86)\Java\jdk1.8.0_131"
SET PATH=%JAVA_HOME%\bin;%PATH%

确认版本正确JDK位于 PATH 中:

Confirm that the correct version of the JDK is in your PATH with:

javac -version

这篇关于Elasticsearch安装:错误'jvm.dll错过'服务器'JVM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆