Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime image Locale #145

Open
NegusSugus opened this issue Aug 25, 2023 · 2 comments
Open

Runtime image Locale #145

NegusSugus opened this issue Aug 25, 2023 · 2 comments

Comments

@NegusSugus
Copy link

I'm creating an image of my javafx application using the plugin.
When I execute the bat file to launch my application the locale is not set to Spanish which is the locale of my code. Any idea why is it happening and how can I solve it? Thank you!

@hansi-b
Copy link

hansi-b commented Sep 20, 2023

This sounds similar to a problem I had a while ago. In my case, the jdk.localedata had not been included in the build. I solved it by adding that to the modules list manually:

modules = ['jdk.localedata']
additive = true // add to suggested modules

(See https://stackoverflow.com/a/70009139 for more details, and there is issue #108 open here for this topic.)

@danielpeintner
Copy link

I did have a similar issue and in my case I added the languages explicitly (German, Italian, English) ...

runtime {
    options = ['--add-modules', 'java.base,jdk.localedata', '--include-locales', 'de,it,en']
    additive = true
    modules = ['jdk.charsets', 'jdk.crypto.ec']
    ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants