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

后端 未结 11 830
感情败类
感情败类 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:35

    This happened to me in a multi-language project when my primary module's Project SDK was Python and I was trying to add a secondary module that was JDK (importing an sbt project).

    I had to temporarily switch the primary module's Project SDK to JDK in order to add the sbt module. I then had the ability to go back and change each module to the correct SDK.

提交回复
热议问题