Falling back to java on path. This behavior is deprecated

Posted sirdong

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Falling back to java on path. This behavior is deprecated相关的知识,希望对你有一定的参考价值。

windows启动elasticsearch报错:warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME

错误原因:windows 机器上已经安装了java,但是没有配置环境变量 JAVA_HOME

因为一台计算机上可以安装多个JDK和JVM,为了避免混乱,可以新增环境变量JAVA_HOME,指定一个默认使用的JDK。

使用 echo 命令检查环境变量JAVA_HOME

echo %JAVA_HOME%
E:\elasticsearch\bin>echo %JAVA_HOME%
%JAVA_HOME%

解决方法:
将JAVA_HOME添加到环境变量中即可。

环境变量设置完成后,需要重新启动命令行才能设置生效。

以上是关于Falling back to java on path. This behavior is deprecated的主要内容,如果未能解决你的问题,请参考以下文章

[ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChang

scala终端启动报错:[ERROR] Failed to construct terminal; falling back to unsupported

[ERROR] Terminal initialization failed; falling back to unsupported

启动hive报错[ERROR] Terminal initialization failed; falling back to unsupported

hive_异常_01_ Terminal initialization failed; falling back to unsupported

Python Falling back to the 'python' engine because the 'c' engine does not support r