我有一个 JAR 文件,其中包含我的语言的本地化内容,但我不希望它使用该文件,我希望它是英语。
有人知道如何用英语运行 JAR 文件,或者如何从 JAR 文件中删除本地化吗?
最佳答案
来自exampledepot.com :
> java -Duser.language=2-char-lang-code -Duser.region=2-char-country-code MyApp
// Set only language code
> java -Duser.language=fr -Duser.region= MyApp
// Set language and country code
> java -Duser.language=fr -Duser.region=CA MyApp
英语代码是en
。
关于java - 如何禁用 JAR 文件的本地化?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7378095/