IDE does not find 'java' executable in bundled SDK

Answered

In my first Java project with IntelliJ, upon (re)build, the IDE reports the following error:

Error:Cannot run program "/Users/claudia/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/181.4892.42/IntelliJ IDEA.app/Contents/jdk/Contents/Home/bin/java" (in directory "/Users/claudia/Library/Caches/IntelliJIdea2018.1/compile-server"): error=2, No such file or directory

It seems to me that the path to the java executable is missing a subfolder at the end; in my filesystem it can in fact be found at:

...Contents/Home/jre/bin/java

Only I do not know how to correct this. I would like to use the bundled JDK but for now the only solution I have found to this problem is to use an external one.

Thanks.

 

0

Please sign in to leave a comment.