Fork me on GitHub
#cursive
<
2022-02-25
>
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
user=> 
Anyone else experiencing this?

cfleming19:02:42

There was an error similar to this a while ago, which I thought I had fixed: https://github.com/cursive-ide/cursive/issues/2561. Do you have a JDK configured in your project?

cfleming19:02:28

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