i have JDK 6-12 installed with 11 being my default...
# kontributors
j
i have JDK 6-12 installed with 11 being my default. When trying to build, I set
JAVA_HOME
to 8 yet multiple parts of the build seem to be selecting 12 (the latest) no matter what I do
Copy code
> Configure project :kotlin-reflect
Cannot find file by paths: [jre/lib/rt.jar, ../Classes/classes.jar] in /Library/Java/JavaVirtualMachines/jdk-12.jdk/Contents/Home

> Task :kotlin-annotations-jvm:compileJava FAILED
warning: [options] bootstrap class path not set in conjunction with -source 6
error: Source option 6 is no longer supported. Use 7 or later.
error: Target option 6 is no longer supported. Use 7 or later.

> Task :kotlin-runtime:compileJava FAILED
warning: [options] bootstrap class path not set in conjunction with -source 6
error: Source option 6 is no longer supported. Use 7 or later.
error: Target option 6 is no longer supported. Use 7 or later.
u
I use https://sdkman.io/ to easily switch between different Java versions. It makes life slightly easier.