alex cue 987
08/24/2023, 2:11 PM./gradlew clean build
. But it fails on me as follows:
Could not determine the dependencies of task ':kotlin-stdlib:compileMainJdk7KotlinJvm'.
> Unable to download toolchain matching the requirements ({languageVersion=7, vendor=any, implementation=vendor-specific}) from 'https://api.foojay.io/disco/v3.0/ids/45dfb704e8dcceab434285501d74cd33/redirect'.
> Provisioned toolchain '/home/***/.gradle/jdks/zing20/zing20.09.1.0-1-jdk7.0.272-linux_x64' could not be probed: Command returned unexpected result code: 6
Error output:
Error: dl failure on line 1093
Error: failed /home/***/.gradle/jdks/zing20/zing20.09.1.0-1-jdk7.0.272-linux_x64/jre/lib/amd64/server/libjvm.so, because /home/***/.gradle/jdks/zing20/zing20.09.1.0-1-jdk7.0.272-linux_x64/jre/lib/amd64/server/../../../../etc/orca/lib/liborca.so.0: file too short
I only have Java 11 installed on my laptop. What am I doing wrong?alex cue 987
08/24/2023, 2:18 PM> Task :javaToolchains
+ Options
| Auto-detection: Enabled
| Auto-download: Enabled
+ Azul Zulu JDK 1.6.0-119-b119
| Location: /home/***/.gradle/jdks/azul_systems__inc_-6-amd64-linux/zulu6.22.0.3-jdk6.0.119-linux_x64
| Language Version: 6
| Vendor: Azul Zulu
| Architecture: amd64
| Is JDK: true
| Detected by: Auto-provisioned by Gradle
+ Eclipse Temurin JDK 1.8.0_382-b05
| Location: /home/***/.gradle/jdks/temurin-8-amd64-linux/jdk8u382-b05
| Language Version: 8
| Vendor: Eclipse Temurin
| Architecture: amd64
| Is JDK: true
| Detected by: Auto-provisioned by Gradle
+ OpenJDK 9.0.4+11
| Location: /home/***/.gradle/jdks/oracle_corporation-9-amd64-linux/jdk-9.0.4+11
| Language Version: 9
| Vendor: Oracle
| Architecture: amd64
| Is JDK: true
| Detected by: Auto-provisioned by Gradle
+ Ubuntu JRE 11.0.20+8-post-Ubuntu-1ubuntu120.04
| Location: /usr/lib/jvm/java-11-openjdk-amd64
| Language Version: 11
| Vendor: Ubuntu
| Architecture: amd64
| Is JDK: false
| Detected by: Current JVM
Chris Lee
08/24/2023, 2:42 PMalex cue 987
08/24/2023, 2:52 PMInvalid Java installation found at '/home/***/.gradle/jdks/zing20/zing20.09.1.0-1-jdk7.0.272-linux_x64' (provisioned toolchain). It will be re-checked in the next build. This might have performance impact if it keeps failing. Run the 'javaToolchains' task for more details.
w: Detected multiple Kotlin daemon sessions at kotlin/sessions
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':kotlin-stdlib:compileMainJdk7KotlinJvm'.
> Unable to download toolchain matching the requirements ({languageVersion=7, vendor=any, implementation=vendor-specific}) from 'https://api.foojay.io/disco/v3.0/ids/45dfb704e8dcceab434285501d74cd33/redirect'.
> Provisioned toolchain '/home/***/.gradle/jdks/zing20/zing20.09.1.0-1-jdk7.0.272-linux_x64' could not be probed: Command returned unexpected result code: 6
Error output:
Error: dl failure on line 1093
Error: failed /home/***/.gradle/jdks/zing20/zing20.09.1.0-1-jdk7.0.272-linux_x64/jre/lib/amd64/server/libjvm.so, because /home/***/.gradle/jdks/zing20/zing20.09.1.0-1-jdk7.0.272-linux_x64/jre/lib/amd64/server/../../../../etc/orca/lib/liborca.so.0: file too short
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.2.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 3m 53s
I don't have Java 7 installed on my laptop, so presumably Gradle is pulling it.Chris Lee
08/24/2023, 2:56 PMUnfortunately AdoptOpenJdk project does not provide required JDK 1.6 and 1.7 images, so you could either download them manually and provide path to installation viaandJDK_1_6
environment variables or use following SDK managers:JDK_1_7
alex cue 987
08/24/2023, 3:10 PMVampire
08/24/2023, 3:15 PM/home/***/.gradle/jdks/zing20
as it seems this auto-provisioned toolchain is brokentapchicoma
08/24/2023, 3:25 PM