云数据存储模拟器无法在Mac上查找Java

时间:2017-11-08 19:11:06

标签: java macos google-cloud-datastore google-cloud-platform

运行gcloud beta emulators datastore start会产生错误:

ERROR: (gcloud.beta.emulators.datastore.start) The java executable on your PATH is not a Java 7+ JRE. The Google Cloud Datastore emulator requires a Java 7+ JRE installed and on your system PATH

问题是,我确实安装了java。运行java -version时,我得到:

java version "9.0.1" Java(TM) SE Runtime Environment (build 9.0.1+11) Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

macOS版本:10.12.6

我重新安装java并重新启动,没有任何作用

任何帮助?

0 个答案:

没有答案