Question: how to add jpcap library in netbeans?
Answer: download jpcap-x.x.zip from here; unzip it to any folder you like; add the doc/javadoc subfolder of unzipped folder to your library in library manager.