Skip to content

Java JNI library changes#6344

Merged
lrknox merged 2 commits intoHDFGroup:developfrom
opoplawski:jni
Apr 10, 2026
Merged

Java JNI library changes#6344
lrknox merged 2 commits intoHDFGroup:developfrom
opoplawski:jni

Conversation

@opoplawski
Copy link
Copy Markdown
Contributor

Fedora Java packaging guidelines https://docs.fedoraproject.org/en-US/packaging-guidelines/Java/#_guideline state that:

  • JNI shared objects MUST be placed in %{_libdir}/%{name}.
    The first commit here allows changing the install location.

The second removes the library versioning from the JNI library. It is not necessary and discouraged. The Java loader will simply look for the .so file. The JAR and JNI library are always paired so versioning is not relevant.

Comment thread config/HDFMacros.cmake
Copy link
Copy Markdown
Collaborator

@jhendersonHDF jhendersonHDF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @opoplawski. Did some basic testing and this seems fine.

@lrknox lrknox merged commit 62701c4 into HDFGroup:develop Apr 10, 2026
139 checks passed
@github-project-automation github-project-automation bot moved this from To be triaged to Done in HDF5 - TRIAGE & TRACK Apr 10, 2026
brtnfld pushed a commit to brtnfld/hdf5 that referenced this pull request Apr 17, 2026
* Allow setting HDF5_INSTALL_JNI_LIB_DIR to specify install location for the JNI shared library

* No library versioning for Java JNI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants