1

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 ???

Nav Ali
  • 1,232
  • 6
  • 17
  • 26

2 Answers2

0

Did you install winpcap? http://www.winpcap.org/

Alireza
  • 4,347
  • 3
  • 20
  • 31
0

Your application is not finding the DLL. Check that it is on your PATH (not CLASSPATH).

djna
  • 54,992
  • 14
  • 74
  • 117