1.Start "Quick attach":
2. All JVMs are shown that run with your user account. Select the "Show services" button at the top:
3. Select your service:
4. Profile!
Locale object. This might seem surprising at first, but language settings are often used to set the default Java formats for numbers and dates, so this actually makes sense.
user.language.format user.language.display user.country.format user.country.display
Locale.getDefault(), and the two new ones returned by Locale.getDefault(Locale.Category.DISPLAY) and Locale.getDefault(Locale.Category.FORMAT). The two latter ones reflect the two Windows languages settings above and are used in different contexts. As you can guess, Locale.getDefault(Locale.Category.FORMAT) will be used now in default Java formats.Locale.getDefault(), but this locale is derived from Locale.getDefault(Locale.Category.DISPLAY).import java.text.DateFormat;
import java.util.*;
public class ShowLanguageAndLocale {
public static void main(String [] args) {
String [] messages = {
// language and country System properties
"user.language = " + System.getProperty("user.language"),
"user.country = " + System.getProperty("user.country"),
"user.language.display = " + System.getProperty("user.language.display"),
"user.country.display = " + System.getProperty("user.country.display"),
"user.language.format = " + System.getProperty("user.language.format"),
"user.country.format = " + System.getProperty("user.country.format"),
// default locales
"default locale = " + Locale.getDefault(),
"default display locale = " + Locale.getDefault(Locale.Category.DISPLAY),
"default format locale = " + Locale.getDefault(Locale.Category.FORMAT),
// date test
"Date: " + DateFormat.getDateInstance(DateFormat.FULL).format(new Date())};
javax.swing.JOptionPane.showMessageDialog(null, messages);
}
}

sun.locale.formatasdefault property to true.
java -Dsun.locale.formatasdefault=true ShowLanguageAndLocaleFORMAT locale (note that the value of the DISPLAY locale is not lost):
sun.locale.formatasdefault System property to true by default. If you run your application with Java 6, this won't change its behavior at all; if you run it under Java 7, this means that your application select the same locale as with Java 6.-Dsun.locale.formatasdefault=false parameter to installers and launchers. This parameter will make them initialize their language and country from the Display Language setting whatever Java version they run with.