Closed Hixon10 closed 3 years ago
Hi, thanks for posting!
How did you fix it? Maybe I can add the fix to biweekly.
I did a dirty hacks :)
For in = Biweekly.class.getResourceAsStream("biweekly.properties");
I just inlined needed settings.
For Messages
I created a class, which contains all biweekly/messages
values.
But If you have vision, how these problems may be fixed, I can implement it and create a PR.
I am glad that solution worked for you, but I'd rather not move all that stuff into the code. :)
The fact that GraalVM can't read files from the classpath seems like a major deficiency to me. It is not uncommon for Java code to do that. 😕
Yeah, I totally agree with you. I will try to contact with someone connected with GraalVM. Maybe, I did something wrong, or I need to use some flags for native-image
tool.
Hello! Thank you for such amazing library.
I wanted to try your library with https://www.graalvm.org/reference-manual/native-image/. However, it does not work out the box. GraalVM is too young project, so it is OK.
So, I understand, that your library does not have any problems, and it is about bugs in GraalVM. However, if you would like to support this platform, you may to fix 2 places:
NPE
in this block of code:The reason is graalvm cannot load
Biweekly.class.getResourceAsStream("biweekly.properties")
.We got
ClassNotFoundException
because of this code:So, it is about resources in both cases. When I locally fixed it,
biweekly
perfectly started, as part of Native image.