Is there a good java API for manipulating RAR archive files someone could recommend? Googling did not turn up anything overwhelmingly convincing.
Asked
Active
Viewed 4.0k times
22
-
1Manipulating, no, because RAR is a closed format. You are allowed to unrar stuff as a developer, but that's about it. Note: I am not a lawyer, but just somebody that went the same path and walked into this one myself. – Maarten Bodewes Oct 09 '12 at 22:57
3 Answers
22
You could try JUnRar, "a RAR handling API implemented in pure Java" (quoting the site).
Jason Terk
- 5,967
- 1
- 26
- 31
Fabian Steeg
- 44,009
- 7
- 83
- 112
4
There is also this fork from SF(@Fabian's answer and this one are forked from an old SF project):
chubbsondubs
- 36,075
- 24
- 100
- 134
2
I think this will help you.
A pure Java library for scanning and enumerating RAR archive contents
SANN3
- 8,651
- 6
- 58
- 89
-
1As of 2017 it cannot yet unrar, but it was the only updated this year – Paul Verest Jul 31 '17 at 15:20
-
As of 2019 it cannot unrar. The reason may be because of the license of rar files – venkat Jun 04 '19 at 10:58