在JDK7工具中强制使用英语 [英] Forcing the use of english in JDK7 tools

查看:69
本文介绍了在JDK7工具中强制使用英语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在德国Windows计算机上安装了JDK7,我注意到的第一件事是,与JDK6不同,它需要OS和某些消息(例如,来自工具的帮助消息,而不是来自编译器的错误消息)之后的消息.我如何强迫它到处使用英语? AFAIK安装程序不是特定于语言的,并且安装过程中的所有消息均为英文.

I just installed JDK7 on a german Windows machine and the first thing I noticed is that unlike JDK6 it takes after the OS and some messages (e.g., the help messages from the tools but not error messages from the compiler) are in german. How can I force it to use english everywhere? AFAIK the installer isn't language-specific and all the messages during installation were in english.

推荐答案

您是说javac? 尝试设置-J-Duser.language=en参数. 看到这个帖子:传递"; -J-Duser.language通过ant进入javac以确保以正确的语言报告编译错误

You mean javac? Try setting -J-Duser.language=en argument. See this post: Passing "-J-Duser.language" into javac through ant to ensure compilation errors are reported in the correct language

这篇关于在JDK7工具中强制使用英语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆