Exporting project in production

1 reply [Last post]
fredeaster
Offline
Joined: 09/14/2016

Hello,

Just finished building a sniffer, to analyse some of my network traffic, and I managed to make it work on my development computer.
Unfortunatly, I can't make it work on the computer I want.
I installed WinPcap_4_1_3, and java, and that's the terminal message I received :

hello
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.slytechs.library.NativeLibrary.dlopen(Ljava/lang/String;)J
at com.slytechs.library.NativeLibrary.dlopen(Native Method)
at com.slytechs.library.NativeLibrary.(Unknown Source)
at com.slytechs.library.JNILibrary.(Unknown Source)
at com.slytechs.library.JNILibrary.loadLibrary(Unknown Source)
at com.slytechs.library.JNILibrary.register(Unknown Source)
at com.slytechs.library.JNILibrary.register(Unknown Source)
at com.slytechs.library.JNILibrary.register(Unknown Source)
at org.jnetpcap.Pcap.(Unknown Source)
at javaapplication1.PacketLoader.(PacketLoader.java:43)
at javaapplication1.JavaApplication1.main(JavaApplication1.java:32)
Appuyez sur une touche pour continuer...

Netbeans provided me a jar file i'm running, and a library folder which contains jnetpcap.rar.

Would be a big help if you could help me to make it work.

Thanks a lot,

fred

Mark Bednarczyk
Offline
Joined: 03/22/2008
Add your jnetpcap

Add your jnetpcap installation directory where your .dll files reside to your PATH. Or alternatively you can set on the java commandline using -Djava.library.path=directory

Sly Technologies, Inc.
http://slytechs.com

Comment viewing options

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