Jpcap is a free library for capturing and sending network packets from Java apps.
Jpcap can capture Ethernet, IPv4, IPv6, ARP/RARP, TCP, UDP, and ICMPv4 packets. Jpcap is open source