1.选中项目主类右键在run as里选中 run configuration 2.选择第2个选项卡 (x)=Arguments 3.在Program arguments里输入参数,点下Apply,最后再点Run