eclipse运行一个抓包程序,JAR包有问题

小白一枚,运行提示错误,在线等,急求解答
2024-12-30 22:04:46
推荐回答(1个)
回答1:

你没有添加jpcap的dll库Jpcap.dll到jre里面,添加即可,如图所示:

JPCAP的文档readme中英文解释如下:



1) Copy "lib\Jpcap.dll" into "[JRE directory]\bin" or

   "[JRE directory]\lib\ext\x86"

2) Copy "lib\jpcap.jar" into "[JRE directory]\lib\ext"

3) If you installed JDK, you also need to copy "lib\jpcap.jar" into

"[JDK directory]\jre\lib\ext". 


Note: [JRE directory] is usually "C:\Program Files\Java\j2re*".

      [JDK directory] is usually "C:\Program Files\Java\jdk*".