Anyone else see `java.lang.NoClassDefFoundError: Could not initialize class org.jetbrains.kotlin.com...
r
Anyone else see
java.lang.NoClassDefFoundError: Could not initialize class org.jetbrains.kotlin.com.intellij.pom.java.LanguageLevel
trying to run a Gradle build with Kotlin scripts under
buildSrc
using the new Zulu JDK 16?
c
i see it with adoptopenjdk-16
Copy code
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.util.ResourceBundle.setParent(java.util.ResourceBundle) accessible: module java.base does not "opens java.util" to unnamed module @324e4822
r
Just having it installed seems to be enough. Even if I set
JAVA_HOME
to a different version
c
maybe it destroys something when the exception occurs in jdk 16
r
Tried the Strikt CI build on GitHub too and I see the same thing there
c
oh i think its the kotlin compiler daemon
after a killall java it works again with < jdk 16
r
huh, seems to work with
gradle --no-daemon
too
even with
JAVA_HOME
set to 16
c
not for me…
maybe you have a kotlin compiler daemon running with a differnt jdk?
i think the kotlin daemon is independent from --no-daemon
in idea everything works fine even with jdk 16
r
Not sure I even have that enabled,
killall java
only seemed to kill IntelliJ for me
c
for me it kills everything except intellij
r
however, since running
killall java
the problem seems to have gone away even if I don’t use
--no-daemon
c
even with jdk 16?
r
Yep. Wonder why it doesn’t work on GitHub actions’ container
I get another error but much further along
and even if I
rm -fr buildSrc/build
it does’t recur
t
Kotlin will support JDK 16 in
1.5.0
release
👍 1
c
will kotlin 1.5.0 release with idea 2021.1?
t
I think no, IDEA will be released earlier. But I may be mistaken
3042 Views