Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

UnsatisfiedLinkError because of an undefined symbol

Thread view: 
Susanne Kaufmann - 02 Apr 2006 17:25 GMT
Hello,

i am trying to capture packets using JPCap, but I always get an error:
java.lang.UnsatisfiedLinkError:
/usr/lib/jvm/java-1.4.2/jre/lib/i386/libjpcap.so:
/usr/lib/jvm/java-1.4.2/jre/lib/i386/libjpcap.so: undefined symbol:
pcap_sendpacket

Pcap_sendpacket is defined in pcap.h, and libjpcap.so is compiled like
mentioned on the JPCap-site:
http://netresearch.ics.uci.edu/kfujii/jpcap/doc/install.html .

Perhaps someone can help me, or can give me a hint, how to fix this
problem.

Thx in advance,

Susi
Gordon Beaton - 02 Apr 2006 18:53 GMT
> i am trying to capture packets using JPCap, but I always get an error:
> java.lang.UnsatisfiedLinkError:
> /usr/lib/jvm/java-1.4.2/jre/lib/i386/libjpcap.so:
> /usr/lib/jvm/java-1.4.2/jre/lib/i386/libjpcap.so: undefined symbol:
> pcap_sendpacket

Exactly when do you get the error, and what is the full text of the
error message?

Type "ldconfig -p | grep pcap", does it find libpcap.so?

If not, that means that either libpcap.so isn't installed, or it isn't
installed where it can be found at runtime by libjpcap.so. Either add
the directory containing libpcap.so to your LD_LIBRARY_PATH, or add it
to /etc/ld.so.conf and run "ldconfig".

If libpcap.so was found, then check that you have the version required
by libjpcap.

/gordon

Signature

[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.