“错误:无法确定所选JDK中的Java VM可执行文件”的原因是什么?
我正在使用IntelliJ IDEA 13.1.4,还尝试了最新版本14。 运行SBT时出现以下错误: Error:Cannot determine Java VM executable in selected JDK 我的机器和PATH上都安装了JDK 1.7。 在日志中(~/Library/Logs/IntelliJIdea14/idea.log在MacOS上),有以下堆栈跟踪: 2014-11-03 11:22:05,054 [4896641] WARN - nal.AbstractExternalSystemTask - Cannot determine Java VM executable in selected JDK com.intellij.openapi.externalSystem.model.ExternalSystemException: Cannot determine Java VM executable in selected JDK at org.jetbrains.sbt.project.SbtExternalSystemManager$$anonfun$10.apply(SbtExternalSystemManager.scala:97) at org.jetbrains.sbt.project.SbtExternalSystemManager$$anonfun$10.apply(SbtExternalSystemManager.scala:97) at scala.Option.getOrElse(Option.scala:120) at org.jetbrains.sbt.project.SbtExternalSystemManager$.executionSettingsFor(SbtExternalSystemManager.scala:96) at org.jetbrains.sbt.project.SbtExternalSystemManager$$anonfun$getExecutionSettingsProvider$1.apply(SbtExternalSystemManager.scala:54) at …