Hi,
I'm using 7-Zip-JBunding under CentOS 5.11. It works fine with jwrapper-7zip-jbinding version 1.0.0.
But 7-Zip-JBunding 9.20-2.00beta can't be used under CentOS 5.11 because of following error:
java.lang.RuntimeException: SevenZipJBinding couldn't be initialized automaticly using initialization from platform depended JAR and the default temporary directory. Please, make sure the correct 'sevenzipjbinding-<Platform>.jar' file is on the class path or consider initializing SevenZipJBinding manualy using one of the offered initialization methods: 'net.sf.sevenzipjbinding.SevenZip.init*()'
at net.sf.sevenzipjbinding.SevenZip.ensureLibraryIsInitialized(SevenZip.java:808)
at net.sf.sevenzipjbinding.SevenZip.openInArchive(SevenZip.java:794)
...
Caused by: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: 7-Zip-JBinding initialization failed: Error loading native library: '/tmp/SevenZipJBinding-OmKitFPSgs4S/lib7-Zip-JBinding.so'
at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:651)
at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJARIntern(SevenZip.java:455)
at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJAR(SevenZip.java:339)
at net.sf.sevenzipjbinding.SevenZip.ensureLibraryIsInitialized(SevenZip.java:805)
... 4 more
Caused by: java.lang.UnsatisfiedLinkError: /tmp/SevenZipJBinding-OmKitFPSgs4S/lib7-Zip-JBinding.so: /tmp/SevenZipJBinding-OmKitFPSgs4S/lib7-Zip-JBinding.so: ELF file OS ABI invalid
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:649)
... 7 more
14 11 2016 09:19:02,458 ERROR DecompressUtil:144 - SevenZipFile error !
java.lang.RuntimeException: SevenZipJBinding wasn't initialized successfully last time.
at net.sf.sevenzipjbinding.SevenZip.ensureLibraryIsInitialized(SevenZip.java:816)
at net.sf.sevenzipjbinding.SevenZip.openInArchive(SevenZip.java:794)
...
Caused by: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: 7-Zip-JBinding initialization failed: Error loading native library: '/tmp/SevenZipJBinding-OmKitFPSgs4S/lib7-Zip-JBinding.so'
at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:651)
at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJARIntern(SevenZip.java:455)
at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJAR(SevenZip.java:339)
at net.sf.sevenzipjbinding.SevenZip.ensureLibraryIsInitialized(SevenZip.java:805)
... 4 more
Caused by: java.lang.UnsatisfiedLinkError: /tmp/SevenZipJBinding-OmKitFPSgs4S/lib7-Zip-JBinding.so: /tmp/SevenZipJBinding-OmKitFPSgs4S/lib7-Zip-JBinding.so: ELF file OS ABI invalid
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:649)
Hello,
thank you for reporting the bug.
The problem is the --enable-multiarch parameter.
I will have to recompile 7-Zip-JBinding with the --enable-multiarch=no.
Is it for you possible to test the new binary?
Are you using 32 bit or 64 bit Java?
Kind regards,
Boris
See also
http://stackoverflow.com/questions/7647818/glibc-elf-file-os-abi-invalid
Hello,
I have the same problem,and my os is Red Hat 4.4.7-4
My jar version is 9.20-2.00beta
I read your answer but I still don't know how to fix it
where is the new binary that you said?
I saw the latest version is 9.20-2.00beta.
hope your answer.and hope you can read my bad english
Hello,
thank you for the quick answer.
Yes, it will be possible test the new binary (jar).
I'm using 64 bit Java.
Kind regards,
Gutsul
Any updates on this fix yet? Thanks!!