Reputation: 2765
my windows 7 os is in Chinese, and location is China. My javac
output is in Chinese as well. However, I can add -J-Duser.language=en
to javac
to output english. I would like to know how to set this up in intellij?
I have tried to put -J-Duser.language=en
in
File->Setting->Build,Execution,Deployment`->Java Compliler->Additional Command line parameters
But it did not work.
Upvotes: 4
Views: 2774
Reputation: 1099
From the menu "help"->"Edit Custom VM Options", open the VM options, add a line : -Duser.language=en save, then restart the intellij
Upvotes: 2
Reputation: 1653
I had tried and confirmed that the Java Compiler / Additional command line parameters
options didn't work
And so modified the idea.vmoptions
(add one line) worked:
-Duser.language=en
Which's file located here for macOS
$HOME/Library/Preferences/$IDEA
on now $IDEA
should be IntelliJIdea2017.2
Upvotes: 7
Reputation: 2765
After some googling, I found a way of doing it.
I can delete these two files from \lib\tools.jar
com\sun\tools\javac\resources\compiler_zh_CN.class
com\sun\tools\javac\resources\javac_zh_CN.class
However, I wonder if there is a less destructive way.
Upvotes: 0