无法找到捆绑包 com/ibm/icu/impl/data/icudt65b/ru_RU/

huangapple go评论176阅读模式
英文:

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.
无法找到捆绑包 com/ibm/icu/impl/data/icudt65b/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.
无法找到捆绑包 com/ibm/icu/impl/data/icudt65b/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!

huangapple
  • 本文由 发表于 2023年8月5日 07:00:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/76839507.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定