This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ruby and the fly likes Raw packet capturing in JRuby Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Raw packet capturing in JRuby" Watch "Raw packet capturing in JRuby" New topic

Raw packet capturing in JRuby

Bill Reiflin

Joined: Dec 08, 2009
Posts: 2
The pcap library in the Jruby gem list does not work in JRuby due to C extensions, does anyone know if another library exists for JRuby?

I haven't tried Jpcap, but since it also relies on a C library I am assuming won't work either, or am I wrong about JNI not working in JRuby?

On a side note, I am having a tough time finding a JRuby forum with lots of posters. All there seems to be is IRC and mailing lists, both of which are annoying and messy.
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

C libraries aren't completely off-limits thanks to FFI.

And I think jpcap should work anyway. My understanding is if it works in Java, it will work in JRuby.

A good workman is known by his tools.
I agree. Here's the link:
subject: Raw packet capturing in JRuby
Similar Threads
Question - Best choice for framework
Java with Ruby
Ruby - App Server
Getting JRuby working in Ubuntu with Ruby Development Tools
JRuby & Rails