首先在要运行的类上右键Run As ->RunConfigurations 如下图:
选择 arguments 在面的框中输入参数。
关于在eclipse中设置参数问题
原文:http://www.cnblogs.com/coolcool/p/7293981.html