I am trying to make a packet sniffer in java.
My environment is Ubuntu 12.04 64bit.
The first thing I found from internet recommends install Jpcap,
But I could not find any Jpcap installation files for Ubuntu 64bit.
After that I was trying to install libpcap.
I have downloaded source file from http://www.tcpdump.org .
However, when I commands "./configure", it shows me errors like below.
error: Your operating system's lex is insufficient to compile
libpcap. flex is a lex replacement that has many advantages, including
being able to compile libpcap.
it sounds like I have to install flex which I really do not want to.
So is there any way to install this or replacement of this which
library for java, so I can use classes in eclipse?
Thanks for reading and answers.
And can I get some java sample codes for capturing packets?