I'm writing part of Java application responsible for reading archive files of different formats and preparing a preview mode.
Junrar library appeared to be the most reliable to work with RAR format, but it doesn't support the latest version 5 of rar. Only earlier versions are supported.
Junrar dev team confirms this fact here: https://github.com/junrar/junrar/issues/23
Winrar by default creates rar files of version 5, but checkbox 'RAR4' in properties helps to create a file of version 4 - which is perfect to work with. But you have to click it every time you archive the file - that's not a good way (earlier versions of Winrar can't be downloaded from official website).
In my case file is stored as a byte array. I don't need to UNRAR file, i just read it - i need 'name' and 'size' of every file inside of it - thus i prepare preview data of archive content as a small HTML table.
Do you know any other good library to work with Rar format? I can't find any. Or maybe you can imagine some good workarounds?