cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the Default Locale in SAP Java AS

0 Kudos

Hi Colleagues,

Regarding documentation for - How Java read Default Locale I found:

Their is a particular priority it gives for the language specified ..The current session locale is picked from the one which is present and has the highest priority

Its in this order..

1.URL

2.User ID

3.Browser

4.Default Locale Property

5.WD system

6.VM Default

7.Final locale

My Question is - Do you know in SAP Application server - How to change Default Locale

without Java code ? (Some where change the configuration in OS lavel or in JVM level)

I mean - how to use the last two items in priority list "Final locale" or "VM Default" ?

On My Windows system I changed the Regional and Language Options ->

I changes Standards and format to many counties but my code

Locale locale = Locale.getDefault(); always returns me en_US

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi Colleagues,

Reboot of system does not help

markus_doehr2
Active Contributor
0 Kudos

Did you also add the language to your browser and set the new one as default?

Markus

0 Kudos

Hi Colleagues,

I do not want to change the language in browser.

I want to change the Locale in layers below. For example in OS level - but change in OS level should reflect also in J2EE.

Best Regards,

Rosen

Edited by: Rosen Chaushev on Jan 21, 2009 10:49 AM

markus_doehr2
Active Contributor
0 Kudos

> On My Windows system I changed the Regional and Language Options ->

> I changes Standards and format to many counties but my code

> Locale locale = Locale.getDefault(); always returns me en_US

If you change your locale on Windows you need to reboot.

Markus