Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The recommended way to set the default Java locale settings is to do it via the shell / operating system locale settings. For example, on UNIX / LINUX the default locale is determined by environment variables.</p> <p>The following information is from the <a href="http://java.sun.com/javase/technologies/core/basic/intl/faq.jsp" rel="nofollow noreferrer">Java Internationalization FAQ</a>:</p> <blockquote> <p><strong>Can I set the default locale outside an application?</strong></p> <p>This depends on the implementation of the Java platform you're using. The initial default locale is normally determined from the host operating system's locale. Versions 1.4 and higher of Sun's JREs let you override this by setting the user.language, user.country, and user.variant system properties from the command line. For example, to select Locale("th", "TH", "TH") as the initial default locale, you would use:</p> <p>java -Duser.language=th -Duser.country=TH -Duser.variant=TH MainClass</p> <p>Since not all runtime environments provide this feature, it should only be used for testing.</p> </blockquote> <p><strong>EDIT</strong></p> <p>The question asks this:</p> <blockquote> <p>I'm looking specially to change the datetime format to make it ISO-8601 compliant (military time), but I was not able to find the proper proprieties for this.</p> </blockquote> <p>You appear to be want to selectively override certain <em>aspects</em> of the current locale, rather than change it entirely. The simple way to do this is to have the application do the work; i.e. use a specified date format rather than the default format given by the current locale. But if the application is closed source, you may not have the option of changing it.</p> <p>It <em>might</em> be possible to work around this with the following approach:</p> <ul> <li>Figure out how Java implements the resolution of locale triples (country/language/variant) to locale objects.</li> <li>For each locale that you need to support, subclass the existing locale classes (etc) to implement a new variant that uses ISO date/time formats.</li> <li>Create a JAR containing your custom classes or resources, and add it to the classpath. (You might need to add the JAR to the bootclasspath, etc to get this to work)</li> </ul> <p>Finally, if the application is not using the locale mechanisms to decide what date format to use, any changes based on changing the locale will have no effect.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload