Hi, decided to get into Kotlin properly today, but...
# getting-started
m
Hi, decided to get into Kotlin properly today, but I cannot get the build to work, I am not coming from a Java background so am not familiar with gradle, but it seems somewhat painful for simple things. In particular, I am getting
Could not determine Java version using executable /usr/lib/jvm/java-10-openjdk/bin/java
- not really sure how it's impossible to determine the JDK version from that. EDIT: Looks like https://github.com/gradle/kotlin-dsl/issues/816 i.e. Gradle, Kotlin and OpenJDK 10 don''t play nicely together
a
Are you trying to compile from cli or IDE?
👍🏼 1
m
Even with a java background, this sort of thing happens, and is frustrating. You’ll need to jack that the java version in your gradle file matches the version in your
project -> project SDK
in intellij; and that it matches the version in your path at the command line (depending on which way you’re compiling it)
m