java.lang.UnsatisfiedLinkError: C:\Windows\System32\jnetpcap.dll: The specified procedure could not be found

1 reply [Last post]
shaheenm
Offline
Joined: 08/30/2009

Hi Mark

I downloaded and installed the latest 1.4 build but get the following error when trying to run my app.


run:
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\Windows\System32\jnetpcap.dll: The specified procedure could not be found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at org.jnetpcap.Pcap.(Pcap.java:469)
at org.jnetpcap.PcapDLT.(PcapDLT.java:180)
at org.jnetpcap.PcapDLT.(PcapDLT.java:72)
at org.jnetpcap.protocol.JProtocol.(JProtocol.java:56)
at org.jnetpcap.packet.JRegistry.(JRegistry.java:89)
at diss.itb.jinterceptor.gui.MainFrame.(MainFrame.java:71)
at diss.itb.jinterceptor.gui.MainFrame$1.run(MainFrame.java:470)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

If I go back to a 1.3 (1.3b1-2) build then it runs. But I'm getting Nullpointer exceptions when reading from packets and getting the headers within a packet.

Is there an error with the dll? If i run using the dll from 1.3 but the jar from 1.4 then my app works alot better, so that leads me to think that the dll is missing something.

Regards
Shaheen

Mark Bednarczyk
Mark Bednarczyk's picture
Offline
Joined: 03/22/2008
jNetPcap 1.4 requires

jNetPcap 1.4 requires WinPcap 4.1.1 to be installed. There are new API calls in WinPcap 4.1.1 which is based on libpcap 1.0.0 API.

You can look at jNetPcap 1.4 overview page to see what was added:
http://jnetpcap.com/jnetpcap-1.4

Sly Technologies, Inc.
R&D

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.