What is code for Opening a rar file from java?
![qa-featured](https://www.techyv.com/sites/default/users/superadmin/qa-featured-300x270.png)
Hi
I want to know what is the coding for opening a rar file from Java. Is this possible to create a program which open rar files as like a zip file for the Java platform?
![](https://techyv.com/sites/default/2016/10/techpedia_logo.png)
Hi
I want to know what is the coding for opening a rar file from Java. Is this possible to create a program which open rar files as like a zip file for the Java platform?
Hi Bolton Mcfdden,
It is possible to extract files from rar files using Java. The library you need is JUnrar.
The below link gives sample code on how to unzip a RAR file using Java and JUnrar.
http://www.ke-cai.net/2011/12/extracting-rar-archives-in-java-using.html
Hope it helps.
Hi,
The Chilkat RAR for .NET and C++ are bundled in downloads that contain all Chilkat classes
(Both free and non-free). Make sure you select the download that matches your .NET Framework or VC++ version (6/7/8).
If running on x64, download the ActiveX, .NET, or C++ builds marked specifically for x64.
Chilkat Java Library Downloads for Windows, Linux, and MAC OS X are attached.
Thanking you.
Franke Mary