1、在eclipse的help—》Install New Software中添加新软件开发,添加源:
设置名称:jd-eclipse_update_site
设置获取地址:http://jd.benow.ca/jd-eclipse/update
然后一顿next,等待下载源并安装;
2、安装完成后,eclipse会提示重启,重启后修改一个设置:选window-preferences 在输入框输入file Associations 右上框选*.class , 下面的框中选中class file editor,最后点击右下方default,自此安装完成,便可以查看jar中的源码.