FabricMC / fabric-language-kotlin

Fabric language module for Kotlin.
Apache License 2.0
293 stars 33 forks source link

Using kotlin.random.Random crashes with NoClassDefFoundError #16

Closed natanfudge closed 4 years ago

natanfudge commented 4 years ago

This is the log image

It happened in this project https://dilaton.martmists.com/martmists/realisticclouds

NikkyAI commented 4 years ago

i assume this uses jdk 9-12 ? i would report this to kotlin (slack) first to see whats going on or is there specific dependencies we miss to include ?

natanfudge commented 4 years ago

This is using jdk8 (I think). I (or someone else) need to test it myself.

NikkyAI commented 4 years ago

i think we missed to include org.jetbrains.kotlin:kotlin-stdlib-jdk7 and it is not transitive i hope adding that fixes this

natanfudge commented 4 years ago

Wouldn't that mean we bundle both jdk8 and jdk7? That won't be good.

NikkyAI commented 4 years ago

jdk-7 is just 3.06 kb