I am trying to capture packet in LAN using code provide in the article
URL – https://www.techrepublic.com.com/5100-3513_11-5815384.html?tag=search
Article
Capture network packets in Java with Jpcap
by David Petersheim | More from David Petersheim | Published: 8/10/05
Keywords: Mobile platforms | Java | Programming languages | Protocols and platforms
Rating: Not yet rated Rate it Comments: None | click here to start it
I am Getting an Exception. Though I have installed JPCap Package in my System.
Exception:
Z:\Idea – Mini Projects\Packet Capture\Sample Program>set classpath=d:\orant\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;d:\masm;d:\j2sdk1.4.0\bin;
d:\cobol;d:\borland\bcc55\bin;;D:\jdk12\jre\lib\ext\jpcap.jar;D:\j2sdk1.4.0\jre\lib\ext\jpcap.jar;
Z:\Idea – Mini Projects\Packet Capture\Sample Program>javac JpcapTip.java
Z:\Idea – Mini Projects\Packet Capture\Sample Program>java JpcapTip
Exception in thread “main” java.lang.UnsatisfiedLinkError: no jpcap in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)
at java.lang.Runtime.loadLibrary0(Runtime.java:772)
at java.lang.System.loadLibrary(System.java:832)
at jpcap.Jpcap.
at JpcapTip.main(JpcapTip.java:14)
Can any one help me to solve the same. The code for the above program in given in the Article that i have specified.