Jpcap doesn’t provide a 64-bit version so I had to compile my own. Here’s the documentation of how I did it. A patch is provided at the end of the post.
Compiling jpcap 0.7 on 64-bit Ubuntu 10.10
Download jpcap or use the following command:
tar -xvf jpcap-0.7.tar.gz
Move into src directory
Open up Makefile in your favorite editor (mine’s emacs)
Change this line:
JAVA_DIR = $(JAVA_HOME)
JAVA_DIR = /usr/lib/jvm/java-6-sun/
Change the compile options from this:
COMPILE_OPTION = -shared -L.
COMPILE_OPTION = -shared -L. -fPIC
Save your file and close your editor.
Follow the jpcap installation instructions
Patch for more advanced users
Let me know if you have any problems!