Menu

#42 java.lang.UnsatisfiedLinkError: findDevice

v0.01.16
open
5
2014-08-15
2006-05-30
Anonymous
No

I was trying to execute various java files in jpcap
library. Tried with the following programs :

CaptureTest.java
CaptureTool.java
NetworkFinder.java
Example1.java

I am getting an error on either

findDevices()

CaptureTest: instantiating PacketCapture object..
PacketCapture: loading native library jpcap.. ok
CaptureTest: PacketCapture instantiated ok
CaptureTest: detecting capture device.. Exception in
thread "main" java.lang.UnsatisfiedLinkError: findDevice
at
net.sourceforge.jpcap.capture.PacketCapture.findDevice(Native
Method)
at
net.sourceforge.jpcap.capture.CaptureTest.runTest(CaptureTest.java:59)
at jpcap.test.capTest.main(capTest.java:118)
Java Result: 1

OR

lookupDevices()

java.lang.UnsatisfiedLinkError: findDevice /

java.lang.UnsatisfiedLinkError: lookupDevices

INFO: loading properties from C:\Documents and
Settings\Saneesh
Kumar\Desktop\jpcap-0.01.16-win32\properties\tool.properties
PacketCapture: loading native library jpcap.. ok
attempting to find network device..
devices detected: Exception in thread "main"
java.lang.UnsatisfiedLinkError: lookupDevices
at
net.sourceforge.jpcap.capture.PacketCapture.lookupDevices(Native
Method)
at
jpcap.test.CaptureTool.autoDetect(CaptureTool.java:130)
at
jpcap.test.CaptureTool.<init>(CaptureTool.java:52)
at
jpcap.test.CaptureTool.main(CaptureTool.java:430)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB