I'm running on a mac osx lion. According to the instruction of carnivore, I suppose WinPCap is only needed on a win machine. Wireshark is also for windows right?
I ran the script required for mac "sudo chmod 777 /dev/bpf*", and errors above is what i got. I don't have a window machine to test at the moment. Is there any equivalent thing I should install to get carnivore working on a mac?
I see jpcap is mentioned in the stack trace. It is rather old library, the release note of the latest release mention Mac OS X support, implying it was quite "young", perhaps it is buggy. Or not compatible with your version. Do you use a 64bit Java? Try with a 32bit one. Do you use OpenJDK? Try with Oracle or Apple versions. Etc.
Go to '[Jpcap extracted directory]/src/c' directory.
Copy 'libjpcap.jnilib' to '/Library/Java/Extensions/' directory.
Copy '[Jpcap extracted directory]/lib/jpcap.jar' to '/Library/Java/Extensions/' Or, place 'jpcap.jar' to any directory and include it to your CLASSPATH.
I do have xcode 4.1 installed on my machine, and put the files generated/downloaded to "Extensions" folder. But it still gives me same error.
I have no idea about OpenJDK, but downloaded and installed a OpenJDK 7 from here.
It didn't end up making any difference in terms of the error processing spits out.
Not sure if this is useful, but all the error messages p5 spits out, comes after I typed the script "sudo chmod 777 /dev/bpf*" in terminal. Before doing that, p5 doesn't give error, but tells me to do so as instructed in carnivore's example code #2.
I will try to install java 32bit version tomorrow.
would you spare a copy of your "" libjpcap.jnilib "" file.. I really need it to install TubeMaster++ on my macBook running Lion 10.7.4 please.. and if you don't mind can you tell me how to compile jpcap using xCode (i have never used it before) sorry for my ignorance. Your help will be greatly appreciated.
I started out with this sketch(carnivore) and had no problems. Then all of a sudden, it stopped working. I searched the forums low and high with no real solution. I don't know if this will fix everyone's problem but, it is angle that hasn't been talked about...
First off, what version of processing are people using that they are unable to properly run the sketch?
I realized that the sketch stopped working for me whenever I updated Processing. Only when I compiled the code using the stable version of Processing (1.5) does the carnivore library work. I realized that I had saved out the code in a later version and apparently this is what was causing the complications. I deleted all updated versions of the program and re-installed the carnivore examples that I was using -- and presto! Everything is fully functional.
By the way this was the error that I was getting: Can't load IA 32-bit .dll on a AMD 64-bit platform