22

Is there a good java API for manipulating RAR archive files someone could recommend? Googling did not turn up anything overwhelmingly convincing.

Yi Jiang
  • 48,053
  • 16
  • 135
  • 134
user54579
  • 4,428
  • 4
  • 22
  • 19
  • 1
    Manipulating, 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 Answers3

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):

https://github.com/jukka/java-unrar

chubbsondubs
  • 36,075
  • 24
  • 100
  • 134
2

I think this will help you.

raroscope

A pure Java library for scanning and enumerating RAR archive contents

SANN3
  • 8,651
  • 6
  • 58
  • 89