Everything tested and compiled

Things are looking really good. I'm compiling multi JRE version jar files, packaging it, generating multiple javadocs and upload to webserver. Tests are passing. The documentation has been updated to reflect the various differences between JRE versions of the API.

Here is a console output of a build on WinXP platform.

Buildfile: C:\jnetstream\jnetpcap\build.xml
   [delete] Deleting directory C:\jnetstream\jnetpcap\build
   [delete] Deleting directory C:\jnetstream\jnetpcap\dist
    [mkdir] Created dir: C:\jnetstream\jnetpcap\dist
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build\obj
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build\lib
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build\include
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build\classes1.4
    [javac] Compiling 21 source files to C:\jnetstream\jnetpcap\build\classes1.4
    [mkdir] Created dir: C:\jnetstream\jnetpcap\build\classes1.5
    [javac] Compiling 21 source files to C:\jnetstream\jnetpcap\build\classes1.5
     [echo] Generating: ./build/include/org_jnetpcap_Pcap.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapBpfProgram.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapDumper.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapPktHdr.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapPktBuffer.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapStat.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapIf.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapAddr.h
     [echo] Generating: ./build/include/org_jnetpcap_PcapSockAddr.h
     [echo] Generating: ./build/include/org_jnetpcap_winpcap_WinPcap.h

Version 1.2 API changes

The new release I'm almost finished with has some slight additions and interesting twists to the API.

New release in the works - version 1.2

I've been fixing a few things in the 1.1 as well as adding new features. Nothing major. The biggest is 1.2 will be a dual library providing support for both Java 1.4 and Java 5 runtimes. I've duplicated the sources code under src/java1.4 and src/java1.5 directories and utilized syntax for appropriate java syntax compatibility level. The functionality is exactly the same in both versions but the 1.4 does not utilize any of the new Java 5 syntax or java 5 binary classfile format.

Website on status!

If you are wondering what happened to the website, its gone down for maintenance by SourceForge crew. The maintenance windows are ridiculously long days even weeks sometimes. jNetPcap website is moving to here soon and will no longer be hosted at

It will take some time to copy and setup all the examples and books that were hosted on the site.

Mark Bednarczyk

What do our customers have to say?

Dimentrix recommends jnetpcap as the Java library of choice when reading packets off the network. We have used this library extensively in our flagship "sqlShark" ( and it has performed admirably. Even under tremendous load, the memory usage was low and response time high. We are also very satisfied with the support given to us by Sly Technologies. Their engineers were prompt in resolving any issues, proficient in network programming and level of commitment was at par with any ISO certified organization.

Vikram Roopchand
Dimentrix, Inc.

Posted by wkunes — 2012-04-24
Nice and Easy to use.
Posted by Ian — 2012-03-27
jnetpcap works perfectly, thanks
Posted by DimitrisK
Great, it's interesting.