英文:
Could not find the bundle com/ibm/icu/impl/data/icudt65b/ru_RU/
问题
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 executable *.exe file is built. I run it and get an 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 the classpath and contains the file ru_RU.
I added bundlesList to pom.xml. Also, you can see module-info.java.
Problem 1
Gluonfx plugin cannot read bundle com.ibm.icu.impl.data.icudt65b.ru, not com.ibm.icu.impl.data.icudt65b.ru_RU.
Problem 2
Let's try to 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 create the file src/main/resources/META-INF/substrate/config/resourcebundles:
com/ibm/icu/impl/data/icudt65b/ru.res
The plugin reads the 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!
英文:
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.
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!
答案1
得分: 0
José Pereda, ¡Gracias!
我添加了代码
stage.setOnCloseRequest(handler -> {
Platform.exit();
System.exit(0);
});
然后
mvn gluonfx:runagent
我的应用程序正常启动,我点击了关闭按钮(右上角的叉号),它关闭了,代理进程也结束了。
然后我执行了
mvn gluonfx:build
应用程序成功构建并启动!
英文:
José Pereda, ¡Gracias!
I added code
stage.setOnCloseRequest(handler -> {
Platform.exit();
System.exit(0);
});
Then
mvn gluonfx:runagent
My app started correctly, I clicked the close button (the cross in the upper right corner), it closed and agent process finished.
Then I did
mvn gluonfx:build
The app is built and started correctly!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论