What's the reason for “Error:Cannot determine Java VM executable in selected JDK”?

后端 未结 11 959
感情败类
感情败类 2021-01-31 13:04

I am using IntelliJ IDEA 13.1.4 and also tried the latest release 14.

Running SBT I get the following error:

Error:Cannot determine Java VM executable in         


        
11条回答
  •  半阙折子戏
    2021-01-31 13:46

    The issue is usually caused by a wrong JDK version in ".idea/sbt.xml", e.g.:

    This option is not updated accordingly when the Project SDK is changed, see SCL-10085. If you have the other JDK (1.7 in my example) generally configured, no error will occur, but the Project SDK will silently be changed back. Otherwise, this error occurs.

    The problem can easily be resolved by manually editing the value in ".idea/sbt.xml" to the right JDK version.

提交回复
热议问题