Menu

#25 Error initializing 7-Zip-JBinding exception on Linux

9.20-2.00beta
open
None
1
2017-12-11
2017-12-11
Shakir
No

We are trying to use SevenZip jar and getting Error initializing 7-Zip-JBinding: exception on Linux servers when trying to decompress enhanced deflate files. The same code is working as expected on Windows server with same set of files.
Following is the Maven dependency defined in our POM. Is there a way to get a later version of SevenZip binaries through Maven and try it on our Linux servers.

<dependency>
<groupid>net.sf.sevenzipjbinding</groupid>
<artifactid>sevenzipjbinding</artifactid>
<version>9.20-2.00beta</version>
</dependency>
<dependency>
<groupid>net.sf.sevenzipjbinding</groupid>
<artifactid>sevenzipjbinding-all-platforms</artifactid>
<version>9.20-2.00beta</version>
</dependency>

Test code to check the libraries -

package sevenZip;

import net.sf.sevenzipjbinding.SevenZip;
import net.sf.sevenzipjbinding.SevenZipNativeInitializationException;

public class TestJar {
public static void main(String[] args) {
try {
SevenZip.initSevenZipFromPlatformJAR();
System.out.println("7-Zip-JBinding library was initialized");
} catch (SevenZipNativeInitializationException e) {
e.printStackTrace();
}
}
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB