gluonhq / gluonfx-maven-plugin

Plugin that simplifies creating native images for Java/JavaFX maven projects
BSD 3-Clause "New" or "Revised" License
189 stars 39 forks source link

Could not find the bundle com/ibm/icu/impl/data/icudt65b/ru_RU/ #481

Closed alextim1508 closed 1 year ago

alextim1508 commented 1 year ago

Hello. I am using gluonfx-maven-plugin 1.0.19 with graalvm-ce-java17-22.3.3 for windows 11. This can be checked from the log below.

>mvn clean gluonfx:build

[1/7] Initializing...
Version info: 'GraalVM 22.3.3 Java 17 CE
Java version info: '17.0.8+7-jvmci-22.3-b22
C compiler: cl.exe (microsoft, x64, 19.29.30151)
Garbage collector: Serial GC
1 user-specific feature(s)

There is also an unpleasant line in the log

 The bundle named: com.ibm.icu.impl.data.icudt65b.ru, has not been found. If the bundle is part of a module, verify the bundle name is a fully qualified class name. Otherwise verify the bundle path is accessible in the classpath.

The exucateble * .exe file is built. I run it and get exception Could not find the bundle com/ibm/icu/impl/data/icudt65b/ru_RU/ Library de.gsi.chart.chartfx-chart throws it.

The library de.gsi.chart.chartfx-chart tries to read the file ru_RU. The library is present in class path and containts file ru_RU. See the screenshot

I added bundlesList to pom.xml. Also you can see module-info.java

Problem 1

Gluonfx plagin can not read bundle com.ibm.icu.impl.data.icudt65b.ru , not com.ibm.icu.impl.data.icudt65b.ru_RU.

Problem 2

Let's try read bundle `com/ibm/icu/impl/data/icudt65b/ru.res. Add a bundle.

<bundlesList>
 <list>com/ibm/icu/impl/data/icudt65b/ru.res</list>
</bundlesList>

or creat the file src/main/resources/META-INF/substrate/config/resourcebundles

com/ibm/icu/impl/data/icudt65b/ru.res

Plugin read bundle name correctly but does not find it.

The bundle named: com/ibm/icu/impl/data/icudt65b/ru.res, has not been found. If the bundle is part of a module, verify the bundle name is a fully qualified class name. Otherwise verify the bundle path is accessible in the classpath.

Please help me. Peace for everyone!