CARNIVORE Download   Clients   Reference   Support   About



Welcome, Guest. Please Login or Register.

Index | Help | Search | Login | Register

Pages: 1
Unsatisfied link error (Read 1612 times)
jims
YaBB Newbies
*



Posts: 3
Unsatisfied link error
04/14/09 at 15:21:40
 
Hi
 
I'm new to carnivore but really excited about the possibilities. I'm using a macbook pro with leopard 10.5 and java 1.6. When I try to run the example sketch (after performing the chmod command) I'm getting this error every time...
 
[org.rsg.carnivore.CarnivoreP5] starting carnivore core
[org.rsg.carnivore.Core] starting Carnivore core...
[org.rsg.carnivore.net.Devices] Found network devices: {en1=AirPort}
 
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: net.sourceforge.jpcap.capture.PacketCapture.open(ILjava/lang/String;IZI)V
     at net.sourceforge.jpcap.capture.PacketCapture.open(Native Method)
     at net.sourceforge.jpcap.capture.PacketCapture.open(PacketCapture.java:53)
     at org.rsg.carnivore.Core.openCaptureOnEveryDevice(Core.java:76)
     at org.rsg.carnivore.Core.<init>(Core.java:53)
     at org.rsg.carnivore.CarnivoreP5.<init>(CarnivoreP5.java:43)
     at sketch_CP5_example3.setup(sketch_CP5_example3.java:180)
     at processing.core.PApplet.handleDraw(PApplet.java:1400)
     at processing.core.PApplet.run(PApplet.java:1328)
     at java.lang.Thread.run(Thread.java:637)
 
I cannot seem to find any explanation anywhere and it would be really great if someone could help!
 
Thanks in advance for any help you guys can give.
Back to top
 
 
Email   IP Logged
Alex
YaBB Moderator
*****



Posts: 65
Re: Unsatisfied link error
Reply #1 - 04/14/09 at 15:41:48
 
if i remember, UnsatisfiedLinkErrors happen when when you don't have the right classes or libraries in place. did you follow the installation instructions exactly? perhaps try to install the carnivore library again. make sure you have "libjpcap-i386.jnilib" in the Processing/libraries/carnivore/library folder
 
(are you sure about having java 1.6? i thought OSX was still only supporting 1.5? -- in any case that's what carnivore is compiled for, so if you do have 1.6, that might be causing problems too, not sure.)
Back to top
 
 
  IP Logged
jims
YaBB Newbies
*



Posts: 3
Re: Unsatisfied link error
Reply #2 - 04/16/09 at 18:44:16
 
Thanks, I'll give it a go. There is a strong possibility that it didn't download properly or something. OSX Leopard is compatible with 1.6 you just have to force it to be used. Apple don't have it running out of the box for some reason.
Back to top
 
 
Email   IP Logged
jims
YaBB Newbies
*



Posts: 3
Re: Unsatisfied link error
Reply #3 - 04/17/09 at 14:17:43
 
Ok figured it out. It doesn't seem to be compatible with Java 1.6. If I downgrade the version to 1.5 it works fine. Now having issues trying to import the whole library into netbeans for a project I'm working on.
Back to top
 
 
Email   IP Logged
Alex
YaBB Moderator
*****



Posts: 65
Re: Unsatisfied link error
Reply #4 - 04/17/09 at 14:20:30
 
our motto: when in doubt, downgrade :)
Back to top
 
 
  IP Logged
prisonerjohn
YaBB Newbies
*



Posts: 1
Re: Unsatisfied link error
Reply #5 - 03/12/10 at 14:06:22
 
Hi,
 
I am having a similar error. I am also on OS X 10.6 but I am using Java 1.5 so I don't think that's the problem.  
 
If I run my app from Processing, everything works properly.  
If I export the app as an application and run it on my machine, everything works properly.
If I run the exported app on a friend's computer (who does not have Processing or Carnivore installed), I get the "Unsatisfied link error" below:
Code:
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: net.sourceforge.jpcap.capture.PacketCapture.open(ILjava/lang/String;IZI)V 


 
When I check the Package Contents of my app, I have "carnivore.jar", "libjpcap-i386.jnilib", and "libjpcap-ppc.jnilib" in the "Java" folder.  
 
Any ideas?
 
Thanks,
-Elie
Back to top
 
 
  IP Logged
RSG
YaBB Administrator
*****



Posts: 26
Re: Unsatisfied link error
Reply #6 - 03/12/10 at 15:31:20
 
yeah i think that error means it can't find the native libraries.  
 
is your friend's machine a PowerPC mac by any chance (and your machine an Intel mac), or vice versa?  
 
is there anything else that is different between the two machines that you can tell us to help troubleshoot?  
 
it's also possible that some sort of path is being hard coded into the app when you export it from processing.
Back to top
 
 

Admin
Email | WWW | AIM   IP Logged
Pages: 1


Carnivore Forum » Powered by YaBB 2.1!
YaBB © 2000-2005. All Rights Reserved.