gluonfx-maven-plugin icon indicating copy to clipboard operation
gluonfx-maven-plugin copied to clipboard

Native image locale problem

Open Hugolarson opened this issue 1 year ago • 1 comments

Hello,

Running the created native .exe throws this exception.

[Tue Oct 03 10:02:33 CEST 2023][INFO] [SUB] java.util.MissingResourceException: Can't find bundle for base name sun.util.resources.CurrencyNames, locale sv_SE [Tue Oct 03 10:02:33 CEST 2023][INFO] [SUB] at [email protected]/sun.util.resources.Bundles.throwMissingResourceException(Bundles.java:302) [Tue Oct 03 10:02:33 CEST 2023][INFO] [SUB] at [email protected]/sun.util.resources.Bundles.loadBundleOf(Bundles.java:147) [Tue Oct 03 10:02:33 CEST 2023][INFO] [SUB] at [email protected]/sun.util.resources.Bundles.of(Bundles.java:106) [Tue Oct 03 10:02:33 CEST 2023][INFO] [SUB] at [email protected]/sun.util.resources.LocaleData$1.run(LocaleData.java:186)

Hugolarson avatar Oct 03 '23 08:10 Hugolarson

<nativeImageArgs>
   ...
   <arg>-Duser.language=sv</arg>
   <arg>-H:IncludeLocales=sv,en</arg>
    ...
</nativeImageArgs>

and of course do an agentrun

Khithar avatar Apr 16 '24 07:04 Khithar