In linux:
in terminal -> locate jpcap
you'll find "/usr/java/packages/lib/ext/jpcap.jar" (only if your jpcap is properly installed)
Add it as an external jar for your project and jpcap will work in eclipse.
Note: you should have admin previliges
in terminal -> locate jpcap
you'll find "/usr/java/packages/lib/ext/jpcap.jar" (only if your jpcap is properly installed)
Add it as an external jar for your project and jpcap will work in eclipse.
Note: you should have admin previliges
I am getting run time errors as
ReplyDeleteException in thread "main" java.lang.UnsatisfiedLinkError: no jpcap in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at jpcap.JpcapCaptor.(JpcapCaptor.java:251)
at pac.pac2.Router.main(Router.java:31)
So how to over come them.
only jar file of jpcap is enough or need to install any ohter files.
working in ellipse to capture the packets
only jar file needs to be installed because it contains all the archived files required. You can check it in your system by typing "locate jpcap" in terminal. Place externally if it doesn't work for you.(in eclipse you need to add it externally)
ReplyDeleteHope it helped.