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

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

    You should be able to work it around by setting the jdk from the settings not from the open/import project dialog.

    From the welcome screen, go to Configure -> Project defaults -> Project structure and add the jdk.

    enter image description here

    Opening the sbt project should work well then.

    Found solution from here

提交回复
热议问题