我jpcap
在我的java程序中使用。我尝试了一切让它运行但没有任何效果。
给出异常::
Exception in thread "main" java.lang.UnsatisfiedLinkError
C:\Program Files\Java\jdk1.7.0\bin\Jpcap.dll: Can't find dependent libraries
我正在使用netbeans7
, JDK7
,Windows 7
所有 32 位
我jpcap
在我的java程序中使用。我尝试了一切让它运行但没有任何效果。
给出异常::
Exception in thread "main" java.lang.UnsatisfiedLinkError
C:\Program Files\Java\jdk1.7.0\bin\Jpcap.dll: Can't find dependent libraries
我正在使用netbeans7
, JDK7
,Windows 7
所有 32 位
如果您绝对确定您的操作系统、Java 和 DLL 都是 32 位的,那么您可能缺少 libpcap 库的 Windows 实现。尝试以下步骤:
1) 卸载任何以前版本的 jpcap
2)安装winPcap,然后运行jpcap安装程序
3) C:\WINDOWS\system32\Jpcap.dll (检查它是否存在)
4) C:\WINDOWS\Sun\Java\lib\ext\jpcap.jar
5)尝试再次运行你的java程序。确保-Djava.library.path=C:\WINDOWS\system32\Jpcap.dll
在您的 Java 启动命令中有。