Tobias Wohlfarth
06/18/2023, 1:30 PMobject HtmlTemplateScriptCompilationConfiguration : ScriptCompilationConfiguration(
{
defaultImports(
"kotlinx.html.*",
"name.voidi.table2web.html.*"
)
jvm {
jvmTarget("19")
dependenciesFromCurrentContext(
"main",
"kotlinx-html-jvm-0.8.0",
)
}
ide {
acceptedLocations(ScriptAcceptedLocation.Everywhere)
}
}
)
I got the following error:
Caused by: kotlin.script.experimental.jvm.util.ClasspathExtractionException: Unable to get script compilation classpath from context, please specify explicit classpath via "kotlin.script.classpath" property
How can specify the script dependencies direct in the compilation configuration?ilya.chernikov
06/22/2023, 3:28 PMupdateDependencies
helper.Tobias Wohlfarth
06/22/2023, 9:23 PMException in thread "main" java.lang.ExceptionInInitializerError
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160)
...
at name.voidi.table2web.MainKt.main(Main.kt:22)
Caused by: kotlin.script.experimental.jvm.util.ClasspathExtractionException: Unable to get script compilation classpath from context, please specify explicit classpath via "kotlin.script.classpath" property