As far as I know, java has to use JNI to go for sniffer kind og operation,use a open source tool from sourceforge snort, and use JNI to call it from Java.http://www.ideas2work.com