1.下载好peersim代码包,如下图所示。
2。建立一个项目,将4个jar包导入项目中。
右击jar目录->Build Path->configure build path.
3,将peersim文件夹中src里的simulator.java导入项目中。
4.点击工具栏RUN-》run configuration->Arguments,将配置文件的路径复制进去---peersim文件example里的文件。
5,点击run开始运行。
转自:
http://hi.baidu.com/dlutwuwei/blog/item/37fff01e73af286ff724e409.html
相关资源:Eclipse下PeerSim仿真