7-Zip-JBinding-4Android icon indicating copy to clipboard operation
7-Zip-JBinding-4Android copied to clipboard

at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:686)

Open pickupsb opened this issue 3 years ago • 1 comments

i have compiled it but it seems i can't use it directly. where should i put the library name in?

pickupsb avatar Feb 23 '22 10:02 pickupsb

On Android devices, loadNativeLibraries() will load native library "lib7-Zip-JBinding.so" with System.loadLibrary().

However, don't call loadNativeLibraries() directly; this is a private method. Also, don't set the library name manually.

Instead, call one of the public SevenZip methods. This will ensure that `the native library is loaded automatically:

  • openInArchive()
  • getSevenZipVersion()
  • openOutArchiveZip()
  • openOutArchive7z()
  • openOutArchiveTar()
  • openOutArchiveBZip2()
  • openOutArchiveGZip()
  • openOutArchive()

There are examples in README.md and Documentation on how to use 7-Zip-JBinding.

omicronapps avatar Feb 26 '22 01:02 omicronapps