You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to find out what causes wired behaviour, on system where only jre was present and dev used a bundled version of 11th in IDEA there was a problem of gradle not downloading jdk and attempting to use jre.
Running ./gradlew build should ensure proper java setup
Test cases to try out:
No java in the system - should automatically install 8th when
Newer (11th) java in the system - should automatically install 8th when
8th jre in the system - should install 8th jdk
Newer (11th) jre in the system - should install 8th jdk
Many jdk versions including 8th - should use 8th
Many jdk versions excluding 8th - should install 8th
Fiddle with PATH and JAVA_HOME (empty, present (pointing to java install dir), absent)
The text was updated successfully, but these errors were encountered:
We might want to consider rolling back to using if-throw exception on gradle evaluation if incorrect java is used (this means you need gradle to run on this java entirely, in comparison toolchain only forces it in some tasks), this way it will fail much faster.
Try to find out what causes wired behaviour, on system where only jre was present and dev used a bundled version of 11th in IDEA there was a problem of gradle not downloading jdk and attempting to use jre.
Running
./gradlew build
should ensure proper java setupTest cases to try out:
Fiddle with PATH and JAVA_HOME (empty, present (pointing to java install dir), absent)
The text was updated successfully, but these errors were encountered: