https://kotlinlang.org logo
s

SrSouza

08/24/2020, 12:08 PM
Hi folks, I'm
java.lang.NoClassDefFoundError: com/intellij/openapi/util/Disposer
when running my Script Compiler. The dependency that I'm using is
kotlin-scripting-jvm-host
, I check it at the final jar and the
com/intellij
actually missing, any idea here?
i

ilya.chernikov

08/24/2020, 12:27 PM
I think you need to add dependency to the
kotlin-scripting-compiler
as well.
e

efemoney

08/24/2020, 2:45 PM
Yeah this ☝️, For me, I have
jvm-host
also and I dont have this issue using 1.4.0 🤔. Are you using 1.4.0? (Before 1.4 you need the
-embeddable
artifact if I’m not mistaken)
s

SrSouza

08/24/2020, 3:40 PM
I find the reason, I was using
scripting-compiler
and
scripting-compiler-embeddeable
together. from
scripting-compiler
from
scripting-compiler-embeddable