今天,在做一个Java界面,在Eclipse上运行中文显示乱码。如图: 解决方法: Run Configurations,在Arguments中增加下面这句: -Dfile.encoding=gbk 结果: