How to Extract a JAR File
This wikiHow teaches you how to extract a JAR file's contents. JAR files are zipped Java files that are typically executed within a Java environment. While extracting JAR files can be tricky depending on your computer's operating system,...
Method 1 of 4:
Using ExtractMe
- Understand when to use this method. ExtractMe is a website that will extract your JAR files for you; however, even though ExtractMe is secure, you shouldn't use it to extract JAR files which contain sensitive or private information.
- Open ExtractMe. Go to https://extract.me/ in your computer's web browser.
- Click Choose file. It's in the middle of the page. Doing so opens a File Explorer (Windows) or Finder (Mac) window.
- Select your JAR file. Go to the location of the JAR file you want to extract, then click it once to select it.
- Click Open. It's in the lower-right side of the window. Your JAR file will be uploaded to ExtractMe, which will begin extracting the file.
- Wait for your JAR file to extract. Once you see the "Archive successfully extracted" message appear, you can proceed.
- Click Save all as ZIP. It's a blue button at the top of the list of archive files.
- Depending on your browser's settings, you may have to select a download location or enter a save name before the ZIP folder will download.
- If your browser alerts you that downloading a ZIP folder from online is potentially dangerous, confirm that you want to download the folder.
Method 2 of 4:
Using WinRAR on Windows
- Install WinRAR. Make sure you check the "JAR" box if it's unchecked when selecting file types to use.
- Find the JAR file you want to extract. Go to the location of the JAR file that you want to extract.
- Right-click the JAR file. Doing so prompts a drop-down menu.
- Select Open with. It's in the drop-down menu. A pop-out menu will appear.
- If you don't see this option, click once the JAR file, then right-click it again and select Open with.
- Click WinRAR archiver. This is in the pop-out menu. Your JAR file will open in a WinRAR window.
- Click Extract To. It's a blue folder icon at the top of the WinRAR folder.
- Select an extraction location. If necessary, click one of the folders on the right side of the window to select it as the location to which you want to extract your JAR file.
- Click OK. It's at the bottom of the WinRAR window. Doing so will extract your JAR file to the selected folder.
Method 3 of 4:
Using Java on Windows
- Make sure you have Java SE installed. If you don't have Java SE (the Java Developer Kit) installed, you won't be able to use the "jar" extraction command, and your file will be impossible to extract with this method:
- Open the JDK 10 download page.
- Check the "Accept License Agreement" box.
- Click the download link next to your computer's operating system.
- Double-click the downloaded setup file.
- Follow the on-screen installation prompts.
- Open File Explorer
- Go to the JAR file's location. Find the JAR file that you want to unzip.
- Select the JAR file's path. Click a blank space in the address bar at the top of the File Explorer window to do so.
- Copy the path. Press Ctrl+C. This will save the path to your JAR file.
- Open Start
- Open Command Prompt. Type in command prompt, then click
- Switch to the JAR file's location. Type in cd and press the space bar, paste in the copied address by pressing Ctrl+V, and press ↵ Enter.
- Enter the "extract" command and your JAR file's name. Type in jar xf and press the space bar, type in your JAR file's name followed by ".jar" (e.g., a file called "mods" would be mods.jar), and press ↵ Enter.
- For example, to extract a JAR file called "minecraft", you would type in jar xf minecraft.jar and press ↵ Enter.
- Go back to the JAR file's location. You should now see the JAR file's extracted contents here.
Method 4 of 4:
Using Java on Mac
- Make sure you have Java SE installed. If you don't have Java SE (the Java Developer Kit) installed, you won't be able to use the "jar" extraction command, and your file will be impossible to extract with this method:
- Open the JDK 10 download page.
- Check the "Accept License Agreement" box.
- Click the download link next to your computer's operating system.
- Double-click the downloaded setup file.
- Follow the on-screen installation prompts.
- Open
- Find your JAR file. Go to the location of the JAR file that you want to extract.
- Select your JAR file. Click once the JAR file to do so.
- Copy the JAR file's path. Press ⌘ Command+⌥ Option+C to do so. This will copy the file path to the JAR file along with the JAR file's name and extension.
- Open Spotlight
- Open Terminal. Type terminal into the Spotlight text box, then double-click
- Enter the "extract" command and your JAR file's path. Type in jar xf and press the space bar, press ⌘ Command+V to paste in your JAR file's path, and press ⏎ Return.
- Go back to the JAR file's location. You should now see the JAR file's extracted contents here.
4.1 ★ | 14 Vote
You should read it
- How to extract Zip files on your computer
- How to decompress IMG files in Windows and macOS
- How to quickly extract .tar.gz file on Windows 10
- How to extract a file or folder from a TAR or TAR.GZ file
- 3 Simple way to extract ISO file
- How to extract ZIP file on computer quickly
- How to Open RAR Files
- What is RAR file?
- Instructions to change DMG file to ISO file
- The best RAR file extraction application on Android
- How to extract IMG files in Windows 10
- How to extract ISO file with Linux