Problem while integrating application with Java

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear All,

I'm trying to integrate my PJSIP application (Linux based) with Java. I
successfully compiled and created .so file but while running the program I
receive the following error:

[root at localhost sip]# java sample
Exception in thread "main" java.lang.UnsatisfiedLinkError: libsample:
/usr/lib/gcj-4.1.1/libsample.so: undefined symbol: pjsua_destroy
   at java.lang.Runtime._load(libgcj.so.7rh)
   at java.lang.Runtime.loadLibrary(libgcj.so.7rh)
   at java.lang.System.loadLibrary(libgcj.so.7rh)
   at sample.<clinit>(sample.java:5)
   at java.lang.Class.initializeClass(libgcj.so.7rh)

Please find the attachment which contains the sample .java and .cpp files.
Could anyone please go throgh the sample file and let me know the solution
for this issue.

Thanks & Regards,
- Senthil 

--------------------------------------------------------------------
mail2web LIVE ? Free email based on Microsoft? Exchange technology -
http://link.mail2web.com/LIVE

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample1.cpp
Type: application/octet-stream
Size: 8519 bytes
Desc: sample1.cpp
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090611/27e1b6a7/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.java
Type: application/octet-stream
Size: 297 bytes
Desc: sample.java
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090611/27e1b6a7/attachment.java>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux