Amo
06/17/2024, 1:02 PMAdam S
06/17/2024, 1:05 PMAmo
06/17/2024, 1:08 PMAdam S
06/17/2024, 1:13 PMAmo
06/17/2024, 6:20 PMAmo
06/17/2024, 7:45 PMHariom Virkhare
06/18/2024, 9:05 AMAdam S
06/18/2024, 9:05 AMorg.jetbrains.kotlin:kotlin-compiler:$kotlinVersion
• org.jetbrains.kotlin:kotlin-scripting-compiler:$kotlinVersion
• org.jetbrains.kotlin:kotlin-main-kts:$kotlinVersion
And then import org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
to compile and run the scripts. It's got a main(args)
function, that you can just call and pass in some args.
Most of the args are pretty standard. The trickier part is passing in the runtime classpath in the -classpath
arg.