[英]Exception in thread “main” java.lang.UnsatisfiedLinkError: no jpcap in java.library.path
i am using netbeans ide and trying to capture packets using jpcap library. 我正在使用netbeans ide并尝试使用jpcap库捕获数据包。 my program used to run correctly before bu suddenly this error
我的程序在突然出现此错误之前曾经正常运行
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jpcap in java.library.path
is appearing. 正在出现。 i have tried ds on my other computer too but in vain .. i have added jpcap library and before installing i cleared older version completely.
我已经在我的另一台计算机上尝试过ds但是徒劳无功..我已经添加了jpcap库并且在安装之前我完全清除了旧版本。 have done everythng available .i am seriously in trouble
已经完成了所有可用的事情。我遇到了麻烦
please help! 请帮忙!
Add this to the beginning of your program: 将其添加到程序的开头:
System.out.println(System.getProperty("java.library.path"));
You should get a list of directories. 你应该得到一个目录列表。 Your
jpcap
's DLL
(or so
on UNIX) must be in one of these directories in order for your program to work. 您
jpcap
的DLL
(或so
在UNIX上)必须在这些目录之一,以便为您的程序工作。 If it is not there, then either: 如果不存在,则:
DLL
/ so
to your system's PATH
(preferred). DLL
/ so
的目录添加到系统的PATH
(首选)。 DLL
/ so
into one of the directories printed. DLL
/ so
添加到打印的目录之一中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.