Fork me on GitHub
Ivar Refsdal13:02:50

I'm getting com.intellij.execution.ExecutionException: Cannot execute: Command failed when executing /usr/local/bin/clojure whereas in the terminal it gives me:

$ /usr/local/bin/clojure
Clojure 1.10.3
Anyone else experiencing this?


There was an error similar to this a while ago, which I thought I had fixed: Do you have a JDK configured in your project?


Also, could you send the whole stacktrace you’re seeing?

Ivar Refsdal10:02:07

No, I didn't have a JDK configured. After I added one, it worked

Ivar Refsdal10:02:22

Thanks for replying though 🙂

Ivar Refsdal13:02:02

(I'm on a new/fresh install using jetbrains sync, don't know it that matters.)

Ivar Refsdal15:02:21

Right, so I found out that the error message was:

Couldn't find 'java'. Please set JAVA_HOME.

Ivar Refsdal15:02:01

For those curious: I installed java using sdkman