I'm unable to run setupDecompWorkspace in Debian 9.
Execution failed for task ':recompileMc'.
> Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-8-openjdk-amd64/jre"
Echo returns the right path (no /jre):
echo $JAVA_HOME
/usr/lib/jvm/java-8-openjdk-amd64
Is gradle overriding this somewhere? How can I fix it? Thanks in advance