Ayfri
09/06/2021, 7:28 PMresources
folder I have a folder named languages
with inside a kotlin.json
file, but when I do ""::class.java.getResource("languages/kotlin.json")
I get null
, why does it occurs ?theapache64
09/06/2021, 7:31 PM.java.*classLoader*.getResource
?Ayfri
09/06/2021, 7:34 PMException in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.lang.ClassLoader.getResource(String)" because the return value of "java.lang.Class.getClassLoader()" is null
at MainKt$App$1.invoke(Main.kt:22)
ephemient
09/06/2021, 8:00 PM""
try one of your own classes. String
is from the bootstrap classloaderAyfri
09/06/2021, 8:02 PM