0

I'm trying to run the 7-ZIP compression example from JEDI Code Library, but I keep getting this error:

Project ArchiveDemo.exe raised exception class EJclCompressionError with message 'Cannot load sevenzip library'.

I definitely have JEDI Code Library installed into my IDE, because the code compiles and it sees all the units. I also definitely have 7-ZIP installed on my computer.

What is causing this exception? What does it mean by it "Cannot load sevenzip library"?

It is raised in the UMain.pas at these lines of code at the bottom of the file:

initialization

  if not Load7Zip then
    raise EJclCompressionError.Create('Cannot load sevenzip library');
2
  • 6
    Is it possible that you have 64 bit 7-zip, but compile 32 bit example app?
    – zed
    Commented Feb 4 at 19:24
  • 2
    Put the 7zip DLL next to your exe Commented Feb 4 at 21:58

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.