Error running scratch file in IntelliJ 15

2.9k views Asked by At

Code:

enter image description here

I get the following when running it:

enter image description here

Reference:

https://www.youtube.com/watch?v=AmeDNZ-86ig

Settings (did not change anything here):

enter image description here

1

There are 1 answers

0
powder366 On BEST ANSWER

Got a solution see record "Eugene Zhuravlev 18 Feb 2016, 16:29" here: https://youtrack.jetbrains.com/issue/IDEA-140228?replyTo=27-1304218

Seems like under mac IDEA's custom SDK home points to "IntelliJ IDEA 15.app/Contents" instead of "IntelliJ IDEA 15.app/Contents/Home". As a workaround please define a project JDK in Project Structure | Project Settings | Project