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

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

    Same error also occurs when you try to do a refresh in "SBT tasks".

    Open

    Preferences -> Language & Frameworks -> Scala Compiler Server
    

    Turn on

    Run compile server (in external build mode)
    

    Once you done with refreshing the project, turn it off again to enable hotswapping back when you change your code in the editor.

提交回复
热议问题