title: java jpcap java.lang.UnsatisfiedLinkError
body: <p>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. </p>
  
  <pre><code>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.&lt;init&gt;(Example1.java:38)
      at com.oz.test.Example1.main(Example1.java:55)
  </code></pre>
  
  <p>To make this easier to the ones who is willing to help,</p>
  
  <p>1) I checked jpcap.dll is under windows, system32 folder (should I check if it is registered?)</p>
  
  <p>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)</p>
  
  <p>3) I have implemented the jar file through eclipse.</p>
  
  <p>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?</p>
  
  <p>Thanks in advance..</p>