I am on Windows 10. I have recently installed a JDK 11 alongside a JDK 8, and I supposed this caused the problem.
For Java 1.8.0_181-b13 Locale.getDefault()
returns Locale with language set to en
and no country or region is defined, so I can't get a proper currency formatting.
Yet my location is set to Russia in Windows settings.
What could cause the problem?
I know that the default is determined off user.language
, user.country
properties and etc. Where are they defined?