|
<Windows 9x, NT, 2000>
- Download and install Javatm2
Platform, Standard Edition (J2SEtm) JRE or SDK.
- Download and install the latest WinPcap.
- Download and extract the latest Jpcap.
- Copy "lib\Jpcap.dll" into "[JRE directory]\bin"
or "[JRE directory]\lib\ext\x86"
- Copy "lib\jpcap.jar" into "[JRE
directory]\lib\ext"
- If you installed J2SE SDK, you also need to copy "lib\jpcap.jar"
into "[SDK directory]\jre\lib\ext".
Note: [JRE directory] is usually "C:\Program
Files\Java\j2re*".
[SDK
directory] is usually "C:\j2sdk*".
<UNIX>
- Download and install Javatm2
Platform, Standard Edition (J2SEtm) JRE or SDK
- Download and install libpcap
if not installed.
- Download and extract the latest Jpcap
- Go to "src/c" 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 [Java directory]/jre/lib/<arch>.
<arch> is either "i386" or "sparc"
- Copy "lib/jpcap.jar" into [Java directory]/jre/lib/ext.
|