04/25/2023, 2:03 PM
Has anybody else ran into the Intellij generated Kotlin hello world console application failing to build on Apple Silicon?
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 '<>' 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.
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 (arm64) "Azul Systems, Inc." - "Zulu 18.32.13" /Users/bthode/Library/Java/JavaVirtualMachines/azul-
    18.0.2 (arm64) "<|> 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) "<|> Inc." - "Amazon Corretto 11" /Users/bthode/Library/Java/JavaVirtualMachines/corretto-11.0.18/Contents/Home

Paul Griffith

04/25/2023, 3:02 PM
what does your actual build.gradle(.kts) look like? is there a
kotlin { jvmToolChain() }
or similar block?


04/25/2023, 4:40 PM
Odd, I ended up deleting the project and using gradle init instead it and now I can't seem to reproduce the issue. 🤷