Operating System - HP-UX
1825898 Members
3064 Online
109689 Solutions
New Discussion

Re: What in HP-UX affects JVM locale settings.

 
martin clarke_1
Occasional Advisor

What in HP-UX affects JVM locale settings.

I have two separate accounts set up under different groups on a PA-RISC machine under HP UX 11.11. If I run a java application from one account it gives different results from the other account due to locale setting differences.
If I use the locale command to display locale information under each of the accounts they both display exactly the same information.
What other environment settings affect the local settings of the JVM.
I have searched the HP site but have yet to find any usefull info in this area.
2 REPLIES 2
G. Vrijhoeven
Honored Contributor

Re: What in HP-UX affects JVM locale settings.

Hi Martin.

Did you check the envionment of both users:
the env command prints it. You could compaire them.

HTH,

Gideon
martin clarke_1
Occasional Advisor

Re: What in HP-UX affects JVM locale settings.

I did compare the env outputs and there was a difference in that one of them had
NLS_LANG=American_America.KO16KSC5601
which is mentioned in Oracle documentation but I cant find any reference to it in HP UX docs.
The account that did not have the above setting caused the problem. Some how it seems to be picking up a korean locale from somewhere.
What I really need to know is the process the JVM goes through to establish the locale it should use. This probably starts with a machine locale setting followed by a series of environment settings.
How do you set the machine locale under HP UX.
What other environment setting can override this setting.
I think the absence of the NLS-LANG setting perhaps allows the machine default setting through.