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
  • 49,435
  • 16
  • 136
  • 136
user54579
  • 4,588
  • 4
  • 23
  • 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
  • 6,005
  • 1
  • 27
  • 31
Fabian Steeg
  • 44,988
  • 7
  • 85
  • 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
  • 37,646
  • 24
  • 106
  • 138
2

I think this will help you.

raroscope

A pure Java library for scanning and enumerating RAR archive contents

SANN3
  • 9,459
  • 6
  • 61
  • 97