devopvoid / webrtc-java

WebRTC for desktop platforms running Java
Apache License 2.0
248 stars 60 forks source link

Application Crash on Linux #37

Closed jahanzaibi closed 2 years ago

jahanzaibi commented 2 years ago

I have build a custom application using the webrtc -java 0.3.0, the application works fine on windows 10, but it crashes with JNI Exception in linux, i have tried ubuntu 18,20,21 Debian 10,11 but getting the same error.

i am using VMWare 16 for linux, with openjdk11

2021-10-31 19:35:05.831 INFO 9933 --- [ Thread-1] : onIceGatheringChange: GATHERING 2021-10-31 19:35:05.838 INFO 9933 --- [ Thread-1] : onConnectionChange: CONNECTING terminate called after throwing an instance of 'jni::JavaWrappedException' what(): Aborted (core dumped)

Regards

jahanzaibi commented 2 years ago

OK, The issue was in classpath, setting proper environment variables solve the issue

panxinmiao commented 2 years ago

I have the same problem. Can you tell me how you solved it? Thanks.

jahanzaibi commented 2 years ago

i was packaging the code in one jar file , at that time it crashes , when i split the lib files in lib folder then this issue was resolved in linux. i was running it in headless ubuntu server.

panxinmiao commented 2 years ago

i was packaging the code in one jar file , at that time it crashes , when i split the lib files in lib folder then this issue was resolved in linux. i was running it in headless ubuntu server.

Thank you. This is really a strange problem that has bothered me for a long time.

jahanzaibi commented 2 years ago

is your problem solved?