Skip to content

feat: load the native libraries from a given directory or the library path - #522

Merged
devopvoid merged 1 commit into
mainfrom
feat/native-library-location
Nov 2, 2026
Merged

devopvoid merged 1 commit into
mainfrom
feat/native-library-location

Conversation

@devopvoid

Copy link
Copy Markdown
Owner
  • -Dwebrtc.java.library.dir loads the libraries from a directory in place, without extracting them, e.g. for jlink/jpackage images or distribution packages.
  • -Dwebrtc.java.extract.dir extracts the native jar's libraries there instead of java.io.tmpdir, e.g. when /tmp is mounted noexec.
  • Libraries found neither there nor on the classpath are loaded with System.loadLibrary, from the runtime image or java.library.path.
  • A failed load names every location tried and why, plus both properties; on musl Linux it points out that the natives need glibc.
  • The media module's libraries and their FFmpeg dependencies are found the same way.

… path

webrtc.java.library.dir names a directory to load the libraries from in place, webrtc.java.extract.dir the one to extract the native JAR into. Without either, the library falls back to System.loadLibrary. A failed load lists every place tried and points out musl systems.
@devopvoid
devopvoid merged commit e606735 into main Nov 2, 2026
25 checks passed
@devopvoid
devopvoid deleted the feat/native-library-location branch November 2, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant