kotlin-script-examples
kotlin-script-examples copied to clipboard
Examples of Kotlin Scripts and usages of the Kotlin Scripting API
I implemented Kotlin scripting support for my [library](https://github.com/OpenFolder/kotlin-asyncapi). Maybe this example can be useful for other developers too. I had a lot of trouble figuring out how to evaluate scripts...
Doc block typo fix
javax.script.ScriptException: ERROR Unable to initialize repl compiler: DEBUG Using JDK home inferred from java.home: D:\2_My_Work_Application\graalvm-ce-java17-22.3.0 DEBUG Using JVM IR backend ERROR Unable to find extension point configuration extensions/compiler.xml (cp: null):...
All these examples are too complicated, brittle, and fragile. Can someone please give the most simple working example possible with only two files 1. main.kt 2. script.kts When I try...
Kotlin version 1.8.20 Simple class defined in a file called simple.kts class Test { val x = 5 } Testing the Script Engine Manager using the following: @Test fun testClassCompile()...
I am trying to use Kotlin Scripting inside a Quarkus Application. However the Quarkus RuntimeClassloader seems to be insufficient to load the classes into the Scripting Engine. That is basically...
Run `kotlin-script-examples.jvm.basic.jvm-maven-deps.host.main` with Program arguments `C:\0\_code\kotlin\kotlin-script-examples\jvm\basic\jvm-maven-deps\host\testData\hello-kotlinx-html.scriptwithdeps.kts`: ``` Executing script C:\0\_code\kotlin\kotlin-script-examples\jvm\basic\jvm-maven-deps\host\testData\hello-kotlinx-html.scriptwithdeps.kts : Using new faster version of JAR FS: it should make your build faster, but the new implementation is experimental...
Makes the project work on Kotlin 2.1.21