File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How to change JDK locale: javac errors in japanese but I want english Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to change JDK locale: javac errors in japanese but I want english" Watch "How to change JDK locale: javac errors in japanese but I want english" New topic
Author

How to change JDK locale: javac errors in japanese but I want english

Jean-Christian Imbeault
Greenhorn

Joined: Dec 08, 2004
Posts: 19
When I run javac I get compilation error thrown at me in Japanese. How can I tell javac to tell me I'm an idiot in english?

I've tried setting an environment variable called LANG to various things (C, en, eng, english) but nothing changes.

My windows command promt shell does display OS errors in english, but when I call javac, javac prints errors out in Japanese ...

My system is:

Windows 2000 (with japanese language installed)
j2sdk1.4.2_04

The following environment variables are set:

_OSLANG=ENGLISH
_OSLANG=ENGLISH
Jean-Christian Imbeault
Greenhorn

Joined: Dec 08, 2004
Posts: 19
Got it!

This is what needs to be changed:

under Control Panel | Regional Options (General Tab)

my locale was set to Japan, I needed to set it to some english using locale (like US) *and* restart my windows machine.

I am happy to say that javac proudly displays my stupidity to everyone in a language I can understand
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to change JDK locale: javac errors in japanese but I want english