Per $SUBJ, I was looking for guidance from the Java community about
embedding .so files within JARs.

I found these docs:

https://docs.fedoraproject.org/en-US/packaging-guidelines/Java/#_applicability

Which seem to have conflicting commentary on this:

 - A Java package uses JNI if it contains a .so file. Note that this file can
   be embedded within JAR files themselves.
 - JNI shared objects MUST be placed in %{_libdir}/%{name}

As long as the JAR for the application is played in 
%{_libdir}/%{name}/%{name}.jar,
does this mean that the .so can be placed within the JAR?


The benefit to .so-in-JAR is that the JAR always knows where to find the .so,
even if the user installs multiple versions of the same package, or, worse,
copies JARs from different systems around.


Wondering what the community's thoughts are,

Alex
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to