蘋果下java編譯中文亂碼

進入終端
1.輸入cd ~
2.輸入 touch .bash_profile
3.open -e .bash_profile
4.export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
5.source .bash_profile


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章