Java jni for libjingle

786 views
Skip to first unread message

Xiaohu Li

unread,
Feb 13, 2014, 6:45:38 PM2/13/14
to discuss...@googlegroups.com
Hi all,

I have two questions regarding libjingle.


2) If it is not just for Android, please continue to read this post. I am using Mac OS and wrote a small java application (regular java, not Android) using java lib mentioned above. I can compile it successfully but have runtime linkage error:

***************************************************************************************************************************************

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jingle_peerconnection_so in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)

at java.lang.Runtime.loadLibrary0(Runtime.java:849)

at java.lang.System.loadLibrary(System.java:1088)

at org.webrtc.PeerConnectionFactory.<clinit>(PeerConnectionFactory.java:39)

...

***************************************************************************************************************************************

The question here is that how I can make use of Java library based JNI? How can I resolve this runtime linkage error?


Please advise. Thanks,

Xiaohu

Ami Fischman

unread,
Feb 13, 2014, 7:33:06 PM2/13/14
to discuss...@googlegroups.com
The Java library also works in desktop JVM in linux, e.g. how the unittest is written (PeerConnectionTest.java).  You might find the launcher script we use on linux to be instructive (libjingle_peerconnection_java_unittest.sh), as well as the README that explains how to build/run it.

I suspect you're missing something like

Cheers,
-a

--
 
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Xiaohu Li

unread,
Feb 18, 2014, 12:16:21 PM2/18/14
to discuss...@googlegroups.com
Thank you a lot, Ami.

I managed to run Java class using Libjingle Java library on Ubuntu server 12.04. 

Xiaohu

balaji sunku

unread,
Feb 20, 2014, 11:18:41 PM2/20/14
to discuss...@googlegroups.com
I think the error is due to the missing .so file right ?? It is clearly saying that "no jingle_peerconnection_so in java.library.path". So i hope the "so" library file is missing which is the reason of this error .. ??

Please clarify if not.

Lars Bork

unread,
Dec 21, 2016, 11:49:13 AM12/21/16
to discuss-webrtc, balaji....@gmail.com
Hi Xiaohu,

habe you been able to solve your problems with the usage of the native framework in a desktop Java application?
Do you have any tips for me where to start?

Best,
Lars
Reply all
Reply to author
Forward
0 new messages