Jpcap (Java package for libpcap)
(c) 2000 Keita Fujii
�@
Jpcap is a Java class package which enables to capture and send IP packets from Java application.
This package uses libpcap and Raw Socket API.Currently, Jpcap is tested on FreeBSD 3.x, Linux RedHat 6.1, Solaris, and Microsoft Windows 2000.
Ethernet, IPv4, IPv6, ARP/RARP, TCP, UDP, ICMPv4 are supported.
What's New
- 9/14/00 Jpcap ver.0.03 has released ARP/RARP supported. Many important bug fix.
- 7/29/00 Jpcap ver.0.02 has released. Now MS Windows are supported!!
Download
For Windows: jpcap.zip
For UNIX: jpcap.tar.gz
How To Install
<Windows 9x, NT, 2000>
- Install JDK1.2 or higher.
- Download and install NDIS packet captuer driver.
- Download and extract jpcap.zip
- Copy Jpcap.dll into system folder (\Windows or \Winnt\System32), OR
Copy it to the folder where PATH is set.- Copy jpcap.jar to Java installed dir\jre\lib\ext
<UNIX>
- Install the latest JDK available on your platform.
- Download and install libpcap if not installed.
- Download and extract jpcap.tar.gz
- Move to jpcap directory, and edit Makefile
- Run make.
If you get an error "structure has no member named `sa_len'",
comment out the line "#define HAVE_SA_LEN" in Jpcap_sub.h.- Copy libjpcap.so to
JDK1.2 or higher
Java installed dir/jre/lib/ext
JDK1.1
Java installed dir/lib/processor type (i386)/thread library name (green_thread)# I include compiled libjpcap.so for Linux, FreeBSD, and Solaris. You may just copy it to the proper directory
# and use Jpcap. But I have no guarantee that they would work on your system.
Documentation
Readme
Instruction of how to install and other information.Changes
History of version up.API Manual
API manual of all classes in package jpcap, generated by javadoc.Sample program
tcpdump-like sample program.
JpcapDumper
You can download JpcapDumper, a graphical tcpdump using Jpcap, from here.
.Links
LBNL's Network Research Group
Original developer of libpcap and tcpdump.tcpdump.org
Latest libpcap and tcpdump are downloadable.WinPcap
libpcap for WindowsRuby/pcap
Ruby package for libpcap