Kotlin / kotlin-interactive-shell

Kotlin Language Interactive Shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR Unable to initialize repl compiler:

sergey-morenets opened this issue · comments

Hi

I tried to use ki-shell 0.3.2 for Windows but encountered severe issues.
I started ki-shell, then typed "h" and got an exception (and got it again on every input).
And I could't even quit the shell because Ctrl+C didn't work and help was unavailable.

type :h for help
[0] h
ERROR Unable to initialize repl compiler:
  ERROR java.lang.ExceptionInInitializerError: java.lang.ExceptionInInitializerError: java.lang.IllegalStateException: Unable to initialize repl compiler:
  ERROR java.lang.ExceptionInInitializerError: java.lang.ExceptionInInitializerError

Hi, thank you.

What JDK version do you use?

Hi, thank you.

What JDK version do you use?

JDK 16, build 16+36-2231

I need some time for investigation. But you can use JDK8, it definitely works, or JDK11 with a small patch:

--add-opens java.base/java.util=ALL-UNNAMED

I need some time for investigation. But you can use JDK8, it definitely works, or JDK11 with a small patch:

--add-opens java.base/java.util=ALL-UNNAMED

Thank you, I added this flag for JDK 16:
java --add-opens java.base/java.util=ALL-UNNAMED -jar ki-shell-0.3.2.jar

And original exception was gone, ki-shell worked properly