I have the following result
>>>>
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jnetpcap in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at org.jnetpcap.Pcap.
at desktopapplication3.Jnetpcap.main(Jnetpcap.java:31)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
<<<<
Well i read the manual about the installation of Jnetpcap and test it 3 times but still the problem isn;t fixed. Propably i am doing something wrong during the installation. Ι have some questions to ask
1) you say "In the below examples we are going to assume that we extracted jnetpcap library under "G:\libs" directory (on a windows platform)". obviously you mean the directory C:\libs?? etc
2) i have now the following Computer->LOcal Disc(C:)-> libs-> and then the extract file jnetpcap-1.4.b004-1
nad the three zip files jnetpcap-1.4.b0004-1.win32.zip (i have a 64 processor is there any prob),
jnetpcap-javadoc-1.4.b0004-1.zip jnetpcap-src-1.4.b0004-1.zip.
3)Finally after following exactly the steps you propose i went to "run" configuration
and in step 3 you say to write the next text field -Djava.library.path="g:\libs\jnetpcap-1.4.b0004-1"
I did also the change cause i have C local disk and made it -Djava.library.path="C:\libs\jnetpcap-1.4.b0004-1"
What else should i do so it can work ??
I want to use jNetPcap to read offline pcap files using Eclipse IDE. I did these steps in UBUNTU 11.10:
1. Download "jNetPcap version 1.4.r1300" for "x86_64" architecture and extract it.
2. Make new Java Project in Eclipse
3. Right-click on the project and go this way: Properties > Java Build Path > Libraries tab
4. Click on "ADD External JARs..." and add the
"jnetpcap.jar"
5. Then, I expand the added jnetpcap.jar and configure the JavaDoc
6. Then, Double click on "Native Library location" and give this address:
/home/emad/Documents/Research Internship/tools/jNETpcap/jnetpcap-src-1.4.r1300-1
This address contains: libjnetpcap.so and libjnetpcap-pcap100.so
7. After that I write some codes similar to site examples to read offline pcap files.
Problem: When I run the application, I see this error related to Native Libraries:
Help Me