This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I change the JVM language preference

 
Peter Hsu
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20608
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try calling Locale.setDefault(Locale.ENGLISH) at the start of your application.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic