Canteen currently does not pass its environment variables to java process on macOS, and it is problematic in certain case: when binary found by exec.LookPath is /usr/bin/java.
On macOS, /usr/bin/java finds and executes the actual java executable by searching ${JAVA_HOME}, which is not defined in this case, hence results in error No Java runtime present, requesting install.
Canteen currently does not pass its environment variables to
java
process on macOS, and it is problematic in certain case: whenbinary
found byexec.LookPath
is/usr/bin/java
. On macOS,/usr/bin/java
finds and executes the actual java executable by searching${JAVA_HOME}
, which is not defined in this case, hence results in errorNo Java runtime present, requesting install
.