KotlinJsr223JvmDaemonLocalEvalScriptEngineFactory demon not started


#1

Hello to all

I’m trying to use the KotlinJsr223JvmDaemonLocalEvalScriptEngineFactory in the SpringBot application.
When trying to execute a script, I get a
javax.script.ScriptException: Unable to connect to repl server:
DEBUG starting the daemon as: C: \ Program Files \ Java \ jre1.8.0_172 \ bin \ java -cp C: \ Users \ user \ projects \ lkb \ lkb \ target \ kotlin-compiler-1.3.10.jar -Djava .awt.headless = true -Djava.rmi.server.hostname = 127.0.0.1 org.jetbrains.kotlin.daemon.KotlinCompileDaemon --daemon-r
unFilesPath C: \ Users \ user \ AppData \ Local \ kotlin \ daemon --daemon-autoshutdownIdleSeconds = 7200 --daemon-compilerClasspath C: \ Users \ user \ projects \ lkb \ lkb \ target \ kotlin-compiler-1.3.10. jar
INFO [daemon] java.lang.NoClassDefFoundError: kotlin / reflect / KDeclarationContainer

Please tell me what I’m doing wrong.
In the project I use
Kotlin 1.3.10
maven


#2

Hello. Is it possible for you to share your project or code snippet to reproduce the problem?


#3

Hi, Alexey

thanks for the answer. I will try to make a small project in which I will try to reproduce this situation.