This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes How can i Extract WinRAR files using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How can i Extract WinRAR files using java" Watch "How can i Extract WinRAR files using java" New topic
Author

How can i Extract WinRAR files using java

Prabhu KuppurajBabu
Greenhorn

Joined: Sep 05, 2007
Posts: 7
Hi all,

I want to extract the winRAR files thru java. can any please help me for this problem as soon as possible.


Thanks in advance
Prabhu.K


Cheers,
Prabhu SCJP 1.4,SCWCD 1.5
Dmitry Mamonov
Greenhorn

Joined: Dec 24, 2008
Posts: 28
Try this:


JNI also may be helpfull, see RarExt.dll, but it is not so easy.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19911
    
  23

The problem is that, unlike the ZIP or GZIP compression techniques, RAR is a closed format. Therefore, its complete details are not disclosed.

You could try to find a third party library, but there probably will be few.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Marcelo Schneider
Greenhorn

Joined: Jan 10, 2009
Posts: 7
Java Unrar is quite useful, but still needs "unrar.exe" to run...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i Extract WinRAR files using java