Answer the question
In order to leave comments, you need to log in
Why doesn't Kotlin REPL work in IntelliJ IDEA?
Trying to run Kotlin REPL in IntelliJ IDEA by following the steps in one tutorial book.
The following error is displayed:
D:\Java\jdk-14.0.1\bin\java.exe -Dkotlin.repl.ideMode=true -Dfile.encoding=UTF-8 @C:\Users\Dmitry\AppData\Local\Temp\ idea_arg_file14023048
Error: Could not find or load main class org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
Caused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
Process finished with exit code 1
Tried running Kotlin worksheet. Problem again:
Error: Could not find or load main class org.jetbrains.kotlin.idea.scratch.generated.ScratchFileRunnerGenerated
Caused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.idea.scratch.generated.ScratchFileRunnerGenerated
Reinstalled the IDE, resetting all configs and installing everything suggested in the installer. The problem persists.
What to do and what is the cause of the problem?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question