Why am I getting UnsatisfiedLinkError in below program?

时光怂恿深爱的人放手 提交于 2019-12-06 11:49:42

UnsatisfiedLinkError means that the 'JpcapCaptor' native lib have not been loaded,

static{
      System.loadLibrary("JpcapCaptor.dll");
}

The javadocs for the UnsatisfiedLinkError are pretty straightforward. you are missing some required lib for jcap.

In the future, the javadocs are a great place to start when you get an exception you don't understand.

Install jpcap in your machine and then try to run your code. you can download jpcap.exe file from here http://jpcap.software.informer.com/0.7/

I had the same problem after full compilation and linking of Jpcap (using eclipse on a Mac OS X computer). Turns out there are two versions of Jpcap: https://github.com/jpcap/jpcap (no JpCaptor), and a version with JpCaptor: https://github.com/mgodave/Jpcap. Maybe this helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!