This message means, that the archive can't be opened. The file you try to open could be either broken or not an archive at all.
If you pass "null" for ArchiveFormat, 7-Zip-JBinding tries all the available archive formats. If non of they can recognize the input as an archive, the exception
If it works well, just use this version or wait for an official release.
If it don't solve your issue, please, post a reproducable example (your java-code + archive).
Please note, that I can only provide functionality, that is present in 7-Zip. If the corresponding version of 7-Zip (e.g. 16.02) have the same issue, you will have to create a ticket for the 7-Zip itself.
Cheers,
Boris Brodski
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This message means, that the archive can't be opened. The file you try to open could be either broken or not an archive at all.
If you pass "null" for ArchiveFormat, 7-Zip-JBinding tries all the available archive formats. If non of they can recognize the input as an archive, the exception
get thrown.
So, what do you mean exactly by issuing the ticket?
Do you want to improve the error message?
Or do you want to add missing archive formats?
Replacing "none" with "any" would be good. :)
Fixed for 2.01
Hi,
I faced below exception in extracting 7zip file which is encrypted with password.
Exceptionnet.sf.sevenzipjbinding.SevenZipException: Archive file can't be opened with none of the registered codecs
I have used sevenzipjbinding 9.20-2.00beta version. Please provide me the solution.
Thanks in Advance
Hello Lavanya,
couple of questions:
You may try one of the newer alpha releases found here: https://sourceforge.net/projects/sevenzipjbind/files/OldFiles/
Cheers,
Boris
Hi Boris,
Thanks for your quick response
Yes, the password is correct
i could able to open the same file with the version of 7-zip 9.20
Now, i have tried the newer alpha releases as you mentioned. Still i am getting the same exception
Ok, in this case I have to see your java code.
It would be even better, if you can provide me with a small snippet of your code together with the archive, that I can run and see the error coming.
I still have 1 - 2 users which run into this bug. The password is correct. Any chance of an updated maven dependency to become available? I'm currently using the following one from 2015:
https://mvnrepository.com/artifact/net.sf.sevenzipjbinding/sevenzipjbinding
Thank you.
Last edit: BullyWiiPlaza 2020-01-06
Hello,
Yes, I plan to release a new version soon. But I don't think it will help you.
You may try the extensively tested fresh build here: https://sourceforge.net/projects/sevenzipjbind/files/OldFiles/JDownloader-16.02-2.01beta-try2/
If it works well, just use this version or wait for an official release.
If it don't solve your issue, please, post a reproducable example (your java-code + archive).
Please note, that I can only provide functionality, that is present in 7-Zip. If the corresponding version of 7-Zip (e.g. 16.02) have the same issue, you will have to create a ticket for the 7-Zip itself.
Cheers,
Boris Brodski