I'm trying to run kotlinscripts through the java s...
# scripting
s
I'm trying to run kotlinscripts through the java script engine. But I get a class not found on
org/jetbrains/kotlin/scripting/resolve/KotlinScriptDefinitionFromAnnotatedTemplate
When I try to run my kotlin scripts. Alot of classes are missing.
c
do you have
kotlin-script-runtime
dependency?
s
After trying to find the problem, I ended up with these libraries, to try if it would work
c
I'm also just starting out, so I'm not sure how well I'm doing it, but I've managed to create a demo. Here you go: https://github.com/AlexCzar/kotlin-script-demo
s
I used this example, and it still causes some problems. When I run it in a standalone project ,it works fine. but when I try add it into my project (which downloads the kotlin libs on runtime) I run into problems
What classloader is used to actually execute the script?
c
I have no idea how it works under the hood, sorry. I'm currently using something based on the sample in a Spring Boot app, everything seems to be working for me.