2

I am using jpcap in my java program. I tried everything to get it run but nothing works.

Gives exception: :

Exception in thread "main" java.lang.UnsatisfiedLinkError 
C:\Program Files\Java\jdk1.7.0\bin\Jpcap.dll: Can't find dependent libraries

I am using netbeans7, JDK7, Windows 7 all 32 bit

akash
  • 22,664
  • 11
  • 59
  • 87
Mohit
  • 342
  • 3
  • 16

1 Answers1

2

If you are absolutely sure that your OS, Java and the DLL are all 32-bit, then you may be missing the Windows implementation of libpcap library. Try below steps:

1) Uninstall any previous versions of jpcap

2) Install winPcap and then, run the jpcap installer

3) C:\WINDOWS\system32\Jpcap.dll (check it exists)

4) C:\WINDOWS\Sun\Java\lib\ext\jpcap.jar

5) try running your java Program again. Ensure that you have -Djava.library.path=C:\WINDOWS\system32\Jpcap.dll in your Java launch command.

Pat
  • 2,223
  • 4
  • 19
  • 25