I developed a swing java application that connects to Oracle (installed on win).
When it tries to connect to DB get exception as "Locale not recognized".
To solve it, I used environment variable "JAVA_TOOLS_OPTIONS" as bellow.
set JAVA_TOOL_OPTIONS=-Duser.language=en -Duser.region=us -Duser.country=us
and my app works well.
If I want to send my to clients, it would be a problem.
I tried to include settings in my app as adding bellow lines to main class
System.setProperty("user.language", "en");
System.setProperty("user.region", "us");
System.setProperty("user.country", "us");
but doesn't affected and I get exception again.
How can I do that?
Thanks