0

While running my code I got this exception. I did not get what is it?

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError:  
    jpcap.JpcapCaptor.nativeOpenOffline(Ljava/lang/String;)Ljava/lang/String;
        at jpcap.JpcapCaptor.nativeOpenOffline(Native Method)
        at jpcap.JpcapCaptor.openFile(JpcapCaptor.java:90)
        at EWMAStableIP.getNumOfNewIPs(EWMAStableIP.java:106)
        at EWMAStableIP.initial(EWMAStableIP.java:343)
        at Frame.initialize(Frame.java:78)
        at Frame.<init>(Frame.java:52)
        at Frame$1.run(Frame.java:39)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$200(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
Sri Harsha Chilakapati
  • 11,744
  • 6
  • 50
  • 91
user2091416
  • 77
  • 2
  • 10

2 Answers2

1

In order to run appropriately, jpcap needs a native libray to be installed - it's missing on your system though.

See the documentation delivered with jpcap in order to get it properly installed.

skirsch
  • 1,640
  • 12
  • 24
0

It seems that you jpcap is not configured properly. Please have a look at https://stackoverflow.com/questions/32591880/jpcap-jpcap-library-path

Also look if a native AWT library is missing in Java.

Community
  • 1
  • 1
user24094
  • 294
  • 1
  • 11