F
F
FolterHaite2020-07-02 11:17:59
IntelliJ IDEA
FolterHaite, 2020-07-02 11:17:59

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

1 answer(s)
I
IFantast, 2020-12-23
@IFantast

There was a similar error, the installation of a new version of JDK 15 helped, the default was 11.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question