Eqistyre

导航

如何解决mac下javac显示出乱码的问题。


进入终端
1.输入cd ~
2.输入 touch .bash_profile
3.open -e .bash_profile


然后在bash_profile下输入export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8并保存。

返回终端
输入source .bash_profile

即可解决

posted on 2015-07-13 21:37  Eqistyre  阅读(177)  评论(0)    收藏  举报