Software Release

If the post is related to software release

jNetPcap v2 - Implementation

As to implementation of jNetPcap v2 API and library here are my thoughts. This is all up for discussion, so please comment.

Of course, as they say, "the devil is in the details", it is very true.

Technologies to utilize

Here are some technologies that I believe we could benefit from. These are chosen to be have least amount of development and runtime depencies.

Gradle for builds

Gradle is the latest and most configurable build system, supplanting 'maven'.

Simple and designed for multi-modular builds. Available as extensions and great support for all of the major IDEs including eclipse.

CCNI for JNI implementation

Sly Techs has a new compiler developed for JNI. This is called CCNI and provides super easy integration of native and java code.

Over the years JNA has also been suggested as it is widely supported on various platforms. However, I personally do not like JNA because code overhead, too generic and too many encapsulations even of simple things as well as it has runtime requirements.

CCNI is easier to follow as it follows the same style as jsni from Google/GWT toolkit but for C and C++ languages. It is easy to integrate into builds. The CCNI compiler is pure java and thus able to run on any platforms as long as it can generate the target code (OS specific). There are no runtime prerequisites, it still generates a static or shared library with all of the user code included.

Here is a quick "HelloWorld" example of code written using CCNI:

public class HelloWorld {

	public native static String createString()
		jstring strObj = (*env)->NewStringUTF(env, "Hello World!");
		return strObj;

	public static void main(String[] args) {
		String str = HelloWorld.createString();

OpenSolaris Complete Support is there or Not?

Platforms supported list is showing OpenSolaris support, but no downloads are available for this unix system.Can anyone tell is there any downlaod available or not?

jNetPcap OS 1.4.r1425 released!

Released an update to 1.4 development. The release fixes several new bugs and is a bit more stable.

For more information look at the changelog and is available for download here.

License Question (GPL, LGPL)?

Hi, I got a question about the license of jNetPcap.

I had just downloaded jnetpcap-1.3.0 from Sourceforge and it says it is LGPL.
Inside of this zip file:, there is a copy of a GPL license along with a copy of a LGPL license. Which one does the sourceforge version use?

There seems to be a commercial version that Sly Technologies sell (is that the one with GPL licensing?).


Another 'Thank You'

I have just spent nearly a year, the most frustrating year of my life, trying to get a simple packet capture program compiled and run. I suffered the imperial arrogance of the Ubuntu jpcap community and their appalling lack of adequate documentation. The winpcap community was no better. Then I stumbled across a forum post indicating the existence of jNetPcap. After a couple of hours, following your almost perfect directions, I have an Eclipse project on Windows 7 that is a working framework upon which I can build. It is solid, runs without complaining and I can now look forward to making some serious progress.

Quick question - is there a version of the jpcap library that runs on the TI OMAP4460 processor using the LS Research TiWi R2 WiFi module?

Syndicate content