I’m trying to use the runtime jar from http://central.maven.org/maven2/org/jetbrains/kotlin/kotlin-runtime/1.0.3/ with the 1.0.3 CLI kotlinc ( https://github.com/JetBrains/kotlin/releases/tag/v1.0.3 )
but the compiler chokes on every reference reference to something from the library.
I’ve made sure that the jars are in the classpath
The specific command I’m using:
kotlinc -no-stdlib -cp "out;lib/kotlin-reflect.jar;lib/kotlin-runtime.jar" src
It’s also strange that the MD5 of the jars from (1) Maven Central, (2) the 1.0.3 github release and (3) supplied by IntelliJ are all different.
Using the jars from (2) and (3) leads to a successful compilation.
As an additional meta-question: what is the point of actually doing what I’m doing, i.e. pulling separate
kotlin-reflect.jar and specifying
no-stdlib. I’ve been doing it because it’s what IntelliJ does as well. Is the reason that newer compilers can handle older runtimes? What are the guarantees exactly?