Software Release

If the post is related to software release

can jnetpcap use jna instead of jni?

At first, thanks for your contribution.

just as a question: will jnetpcap become better if uses jna instead of jni?
if using jna, you will not need to compile native wrapper (such as jnetpcap.dll) for various platform, we can link (or wpcap.dll) with java class directly, only one jar library is enough. it will also support the max number of platforms, for example MacOS, BSD, etc. jna can do these for you.

just an idea: why not split jnetpcap to more functional jars? like what many java frameworks do.
For example, such as jnetpcap.jar for pure wrapper, jnetanalyzer.jar for analyzing various packet protocol, jnetdump.jar for dumping or reading packets, other jars for other functions. splitting them to different project functionally make better to use them. sometimes, somebody maybe only want to get an analyzer but dumper, And sometimes oppositely.

multi-plattform and portable

Hello jNetPcap-Community Smile

I'm planning to build tool for network monitoring using Java with jNetPcap.
The aim is to make it as user-friendly and simple as possible.

Therefore the following question:

Is it somehow possible to make this tool completely portable and multi-plattform compatible, meaning the dumb user can run it, without installing libpcap/winpcap, on linux/windows both 32bit and 64bit?
In my thoughts it must be possible to distribute all needed files with the program.
The reason, why i don't find any code-examples for that purpose, might be that this thoughts are completely wrong Smile

If it's possible, can somebody give me some hints how to accomplish that?
And if it's not possible (what I fear) what do you thing would be the best way to get the needed function?

Greetings from Germany,


jNetPcap 1.4.r1390 released!

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

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

Cannot install jNetPacap on Ubuntu


I am trying to build jNetPcap (1.3) on Ubuntu 12.04. Here are the errors:

achanda@server:~/Desktop/jnetpcap-src-1.3.0-1$ sudo ant
Buildfile: /home/achanda/Desktop/jnetpcap-src-1.3.0-1/build.xml
[taskdef] Could not load definitions from resource cpptasks.tasks. It could not be found.
[typedef] Could not load definitions from resource cpptasks.types. It could not be found.

/home/achanda/Desktop/jnetpcap-src-1.3.0-1/build.xml:119: taskdef class org.vafer.jdeb.ant.DebAntTask cannot be found
using the classloader AntClassLoader[]

Total time: 0 seconds

Here is my system:

achanda@server:~/Desktop/jnetpcap-src-1.3.0-1$ uname -a
Linux server 3.2.0-25-generic-pae #40-Ubuntu SMP Wed May 23 22:11:24 UTC 2012 i686 i686 i386 GNU/Linux

What is wrong here?

jNetPcap 1.4.r1380 released

Another quick 1.4 update. To download: click here

  • Feature #3537229 - PcapDumper enhancements
  • Bug #3415846 - (reopened) several issues/limitations in validate_sip. Sip INFO was still not working in previous update. Sip is working much better now in 1.4.r1380.
  • Also fixed the fumbled package that was released for 32-bit linux

Main purpose of 1.4.r1380 was to fix still a few more Sip issues. Sip is working much better in 1.3.r1380.

Syndicate content