I am using jpcap library to read network traffic and getting exception while executing the following code:
NetworkInterface[] devices = JpcapCaptor.getDeviceList();
Following is the error message:
Exception in thread "main" java.lang.UnsatisfiedLinkError: jpcap.JpcapCaptor.getDeviceList()[Ljpcap/NetworkInterface; at jpcap.JpcapCaptor.getDeviceList(Native Method) at nav.weka.first.JcapTest.main(JcapTest.java:16)
Is anything wrong with the jpcap.dll???
Did you install winpcap ? http://www.winpcap.org/
Your application is not finding the DLL. Check that it is on your PATH (not CLASSPATH).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.