Skip to main content
May 29, 2011
Answered

ColdFusion 9 change Java Default Locale ?

  • May 29, 2011
  • 1 reply
  • 3833 views

I keep getting en error with

en_MY must be one of the ColdFusion supported locales.

The list of supported locales is stored in the variable Server.ColdFusion.SupportedLocales.
The error occurred in E:\wamp\www\Test2\test.cfm: line 2
1 : <cfform>
2 : <cfinput type="datefield" name="test" value="dasd">
3 : </cfform>

I check my jvm detail, my java default locate is showing en_MY.

I have try few way also can't solve my problem

http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-6d90.html

http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-67f2.html

http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7fa3.html

After i complete setting with the intruction from the link , i try restart computer. but the java default locate still being same.

    This topic has been closed for replies.
    Correct answer tooMuchTrouble

    On 5/29/2011 9:03 PM, Raywin_lks said:

    Currently I am using ColdFusion 9 and with multiserver.

    I could not found the jvm argument w/ "-Duser.language" or "-Duser.region"

    make a copy of the current jvm.config & add the locale you want cf to use as

    default. restart the cf server service (no need to reboot the whole server). for

    instance:

    -Duser.language=en -Duser.region=US

    should set the locale to en_US.

    1 reply

    Inspiring
    May 29, 2011

    On 5/29/2011 7:15 PM, Raywin_lks said:

    >

    I keep getting en error with

    I check my jvm detail, my java default locate is showing en_MY.

    >

    I have try few way also can't solve my problem

    actually setLocale should change the locale to whatever you need but not

    permanently, only for that page request.

    open up the jvm.config file that cf uses (for multiserver it should be in

    "\jrun4\bin", sorry i forget the standalone location). find the jvm argument w/

    "-Duser.language" remove that & the "-Duser.region" settings or change them to

    the locale you require. restart the cf server service.

    May 29, 2011

    Thank you.

    Currently I am using ColdFusion 9 and with multiserver.

    I could not found the jvm argument w/ "-Duser.language" or  "-Duser.region"

    In my jvm.config, i only found this is similar

    # Arguments to VM

    java.args=-server -Xmx512m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/

    I saw there is another file call wsconfig_jvm.config , but cant found it , the simiar is

    java.args=-Xms32m -Xmx128m

    # java.class.path - use this for adding individual jars or

    # directories.  When directories are included they will be searched

    # for jars and zips and they will be added to the classpath (in

    # addition to the directory itself), the jar to be used in launching

    # will be appended to this classpath

    tooMuchTroubleCorrect answer
    Inspiring
    May 29, 2011

    On 5/29/2011 9:03 PM, Raywin_lks said:

    Currently I am using ColdFusion 9 and with multiserver.

    I could not found the jvm argument w/ "-Duser.language" or "-Duser.region"

    make a copy of the current jvm.config & add the locale you want cf to use as

    default. restart the cf server service (no need to reboot the whole server). for

    instance:

    -Duser.language=en -Duser.region=US

    should set the locale to en_US.