Albretch Mueller <lbrt...@gmail.com> wrote: > OK this is what the gradle folks told me/us: > > > https://discuss.gradle.org/t/gradle-wants-as-java-version-openjdk-11-even-if-a-newer-version-is-installed/45254/6 > > Gradle itself would just use the Java from your JAVA_HOME or as > fallback from PATH (given you use a version that is compatible with > your Gradle version, otherwise it will most likely fail to execute > later on). > ~ > so, the installation by apt-get should have detected that I had set > JAVA_HOME and the included the JDK in my PATH.
As others have pointed out, apt-get doesn't work like that. It seems to me that the gradle package is wrong in having java as a dependency, since the need can be resolved at run-time rather than install time, and by a dynamic link. So bug report the gradle package, not apt-get. > In case someone stumbles on the same problems, runs into the same > thread, here are the quick steps about how to install gradle on Linux > (without gregorian chanting " ... and if you use Windows, ... and if > you use MacOS, ..."): > > 1) look for the installation file at: https://gradle.org/install/ [snip of a message where Albretch explains how to install the upstream version of gradle instead of the packaged version.]