1、打开工具栏的Window->Preferences
2、选择General->Editors->File Associations
3、选择'Content Types'->点开'Text'->添加*.java或者编辑*.java的Default encoding
4、点击OK完成修改
1、打开工具栏的Window->Preferences
2、选择General->Editors->File Associations
3、选择'Content Types'->点开'Text'->添加*.java或者编辑*.java的Default encoding
4、点击OK完成修改