Questions tagged [kotlin-repl]

2 questions
12
votes
6 answers

Java.lang.ExceptionInInitializerError when running Kotlin REPL in Intellij

I have a brand new install of Intellij 2020.3.3 Community and JDK v16. I booted up Intellij, and made sure to update the Kotlin plugin. I created a new Kotlin project, and have made no changes to it. I attempted to run the Kotlin REPL tool…
kiddagger
  • 331
  • 3
  • 9
4
votes
0 answers

How to use a maven dependency in Kotlin REPL?

A Kotlin script with *.main.kts format can easily pull the dependency through the @file:Repository and @file:DependsOn annotations. But I tried something similar with the REPL: kotlinc-jvm -cp /lib/kotlin-main-kts.jar (specified…