*
The moose likes Java in General and the fly likes How do I change the JVM language preference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How do I change the JVM language preference" Watch "How do I change the JVM language preference" New topic
Author

How do I change the JVM language preference

Peter Hsu
Ranch Hand

Joined: Aug 25, 2006
Posts: 72
Hi

This might sound stupid but I cant seem to find a way to change the language preference of my JVM. When I am running Oracle, Glassfish, etc... on my machine they only spits out Chinese output messages... I do not understand those technical terms because I learn to program in English...

I figure if I change the JVM language preference to English it would all go back to normal right? But I just don't know how I can change it

any help?

thanks
Peter Hsu
Ranch Hand

Joined: Aug 25, 2006
Posts: 72
Oh, I found it

I got to change my language preference from Windows

Now my question is: is that the only way?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

You could try calling Locale.setDefault(Locale.ENGLISH) at the start of your application.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I change the JVM language preference
 
Similar Threads
how to check i18n application for different language
Changing the language permanently for a user
Problem I18N with JSF
Post date is not shown
where can find the example answer for part3