devopvoid / webrtc-java

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

Latest native libraries are not available on Maven Central #70

Closed fioan89 closed 1 year ago

fioan89 commented 2 years ago

There is an issue when loading the native library on Windows. I throws: Exception in thread "main" java.lang.NoSuchMethodError: <init> at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method) at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2445) at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2501) at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2700) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2630) at java.base/java.lang.Runtime.load0(Runtime.java:768) at java.base/java.lang.System.load(System.java:1837) at dev.onvoid.webrtc.internal.NativeLoader.loadLibrary(NativeLoader.java:71) at dev.onvoid.webrtc.PeerConnectionFactory.<clinit>(PeerConnectionFactory.java:42)

In build.gradle.kts I declared the following:


implementation("dev.onvoid.webrtc:webrtc-java:0.6.0")
implementation("dev.onvoid.webrtc:webrtc-java-windows-x86_64:0.1.0")```

0.1.0 is the only JNI dependency published on MVN Central. In the end I've downloaded webrtc-jar and libwebrtc and did my own build. Still, it would have been nice to have the latest native libraries uploaded on the maven repo. 

Thank you for your understanding .
fioan89 commented 2 years ago

If this is not possible maybe it's worth an attention note in the README. 🙇

thelsing commented 1 year ago

See #23