Eclipse错误提示:
Access restriction: The type JpcapHandler is not accessible due to restriction on required library D:\Program Files\Java\jdk1.6.0_21\lib\ext\jpcap.jar
这个错误其实没什么问题,在Eclipse选项中取消错误提示即可。
Window->preferences->Java->Compiler->Errors/Warnings→Deprecated and restricted API中的Forbidden reference (access rules) 规则由Error设置为Warning即可
此外,附加一篇关于Jpcap配置和安装的一篇博文,作者编辑得很用心,文章也很有用。
http://blog.sina.com.cn/s/blog_5d31611a0100boas.html
同时,Jpcap的API链接:http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/javadoc/index.html?overview-summary.html