I have got a problem with jpcap and winpcap. I used to run it before but I do not know what is happening now. I have installed winpcap and downloaded jpcap. On the first run of the example code, I got the following error.
PacketCapture: loading native library jpcap.. ok
Exception in thread "main" java.lang.UnsatisfiedLinkError: net.sourceforge.jpcap.capture.PacketCapture.findDevice()Ljava/lang/String;
at net.sourceforge.jpcap.capture.PacketCapture.findDevice(Native Method)
at com.oz.test.Example1.<init>(Example1.java:38)
at com.oz.test.Example1.main(Example1.java:55)
To make this easier to the ones who is willing to help,
1) I checked jpcap.dll is under windows, system32 folder (should I check if it is registered?)
2) jpcap.jar is under C:\WINDOWS\Sun\Java\lib\ext. jpcap has put it under this folder automatically, I did not choose it. (but my java is running from C:\Program Files\Java\jdk1.6.0_18)
3) I have implemented the jar file through eclipse.
I have pretty much checked everything. There should be a path issue or something similar. Can anybody please help who is familiar with jpcap/winpcap?
Thanks in advance..