Reading resource file issue
Hi. I was making a language system for my project and it threw a
NullPointerException
. Every solution on the internet did not work.
For some reason, the code that reads the image on the same resources
folder did work.
So, heres the code:
Stack trace:
21 Replies
⌛
This post has been reserved for your question.
Hey @Mokka Chocolata! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
yeah but its actually there
its a weird problem
also log4j doesnt read it
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
okay
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
the localization class
just ignore that im not using the java locale class
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
umm i dont know
but the app icon displays correctly though
like
and it works just fine
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
nope
marked it
it does not work
it remains the same resource not found
removing the first slash?
nope
just the file?
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
like without the slash it works
but yeah there is a next problem that i can solve
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
so yeah done
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Post Closed
This post has been closed by <@792625376987054100>.