Hey!
On these quite boring quarentine days I decided to learn somthing about inline Java. To achieve that, I've chosen Java currency class and wrote a ridiculously small project.
Its goal is: get a locale string and show its currency name localized to the language part of the given locale.
Such as: en_GB woulde give me "British Pound", while fr_GB would give me "Livre Sterling", and so forth...
Just that.
OK, ok... I know there are Corwin's excellent libraries AHlocale and AHNumber which should do it far better than I could expect from my code, but my point is: LEARNING.
It works pretty fine. I can see currency names in almost any language of our quarentined world.
Good, but...
It only works if I run the project from inside B4J IDE.
When I compile it and run outside IDE, no localization happens and currency names are always in english language.
So weird... ?
Did I miss something?
Is there anything else I should do to make it work?
I'm using JDK 14.0.1 and JRE 1.8.0_251
Please find attached my tiny project.
Any help would be highly appreciated.
Have a nice week, everybody!