Has anybody else ran into the Intellij generated K...
# getting-started
b
Has anybody else ran into the Intellij generated Kotlin hello world console application failing to build on Apple Silicon?
Copy code
Failed to calculate the value of task ':compileJava' property 'javaCompiler'.
Unable to download toolchain matching these requirements: {languageVersion=8, vendor=any, implementation=vendor-specific}
Unable to download toolchain. This might indicate that the combination (version, architecture, release/early access, ...) for the requested JDK is not available.
Could not read '<https://api.adoptium.net/v3/binary/latest/8/ga/mac/aarch64/jdk/hotspot/normal/eclipse>' as it does not exist.
I don't know where it's getting adoptium from as in my project structure I'm targeting azul-18 which should be the arm64 jvm.
Copy code
Matching Java Virtual Machines (6):
    20 (arm64) "Azul Systems, Inc." - "Zulu 20.28.85" /Users/bthode/Library/Java/JavaVirtualMachines/azul-20/Contents/Home
    19.0.1 (x86_64) "Azul Systems, Inc." - "Zulu 19.30.11" /Users/bthode/Library/Java/JavaVirtualMachines/azul-19.0.1/Contents/Home
    18.0.2.1 (arm64) "Azul Systems, Inc." - "Zulu 18.32.13" /Users/bthode/Library/Java/JavaVirtualMachines/azul-18.0.2.1/Contents/Home
    18.0.2 (arm64) "<http://Amazon.com|Amazon.com> Inc." - "Amazon Corretto 18" /Users/bthode/Library/Java/JavaVirtualMachines/corretto-18.0.2/Contents/Home
    17.0.7 (arm64) "Eclipse Adoptium" - "OpenJDK 17.0.7" /Users/bthode/Library/Java/JavaVirtualMachines/temurin-17.0.7/Contents/Home
    11.0.18 (arm64) "<http://Amazon.com|Amazon.com> Inc." - "Amazon Corretto 11" /Users/bthode/Library/Java/JavaVirtualMachines/corretto-11.0.18/Contents/Home
p
what does your actual build.gradle(.kts) look like? is there a
kotlin { jvmToolChain() }
or similar block?
b
Odd, I ended up deleting the project and using gradle init instead it and now I can't seem to reproduce the issue. 🤷