Jpcap.jar的使用在eclipse中的错误

结果eclipse给出了如下错误提示:Access restriction: The type JpcapCaptor is not accessible due to restriction on required library /media/sda7/opt/jdk1.6.0_16/jre/lib/ext/jpcap.jar其实要解决它也很容易,

Window - Java - Compiler - Errors/Warnings 界面的Deprecated and restricted API下。

把Forbidden reference (access rules): 的规则由默认的Error改为Warning即可

你可能感兴趣的:(eclipse)