• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help!How to change the language of java compile information?  RSS feed

 
Lee Antony
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,every body!
my first language is not english, so please forgive me for my poor english.
My OS is Windows XP Chinese edition,and my JDk is 1.6 u5 multi-language edition. The problem is that,when I compile java programs with problems, the jdk gives a error information in Chinese. I think the informatin is translated terribly. Some even hard to understand. I wanna modify jdk to display error info in English. I try to find a answer on google, but failed. please give me a hand, thanks!
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that the right forum for this question is the General Computing forum.

Regards,
 
Stevi Deter
Ranch Hand
Posts: 265
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This article explains how to change your Windows XP or 2000 locale so that the desired language is used.

It appears the jdk/jre uses the system's locale; it doesn't appear there's a way to change it on the fly.
 
Lee Antony
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Vassili Vladimir and Stevi Deter!
I wonder if there a option in jdk can change the local area. Because if I change the system local to english, it is not good for my daily use.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Umm.. if I wanted that, I would start by reading the documentation for java.util.Locale ... ah, sure enough, there's a method that
Sets the default locale for this instance of the Java Virtual Machine.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But that will not help to make the compiler produce error messages in English; it will only change the locale for the JVM that's running your program at that moment. Note that it says so:

Sets the default locale for this instance of the Java Virtual Machine.
[ May 08, 2008: Message edited by: Jesper Young ]
 
Lee Antony
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Darryl Burke and Jesper Young!
if Sun doesn't give a way, I think i have to creat a new id in XP to change local to english for my specially use.
 
ben reiley
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do you change the language for java for some reason i downloaded off from java and it came up somethin i think that is chinese
please help
 
Campbell Ritchie
Marshal
Posts: 56525
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

Don't know, I am afraid. I presume your operating system language is set to English? If had that problem and a decent internet connection I would try downloading Java again, uninstalling and reinstalling it. If that doesn't work, please supply more detail of what you did, and ask again.
Please try to avoid reopening old threads.

[Edit]Add a link to Java downloads. Is that the link you used before? Download link.[/edit]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!