How to Open JAR Files in Windows 10
JAR files can aggregate thousands of distinct files to make a single application, then they can compress the contents of the folder which in turn reduces the size of the folder and thus helps them to transfer between networks easily. If you want to open a JAR file on Windows 10, the first thing you need to do is to check if you have Java Runtime installed already on your PC. To do so, follow the steps given below.
How to Open JAR Files in Windows 10 How to Install Java Runtime Method 1: Open with Java Platform Library Method 2: Execute JAR through Settings App Method 3: Use Command Prompt Method 4: Download a JAR file opener Method 5: Use Third-Party Executor Software
Hit the Windows key. Type Cmd on the search bar and click Open.
Type the command java -version as shown and hit Enter.
If you receive back following message, then your system does not have Java Runtime. ‘java’ is not recognized as an internal or external command, operable program or batch file
If you do not have Java, then none of the JAR or JRE files can be executed.
How to Install Java Runtime
Java Runtime is the crucial application that runs the JAR files. Once the Java presence is determined in your system you can proceed accordingly. If the Java Runtime app is missing, grab and install it by following the steps given below.
Download the latest version of Java from the official download page.
Select the Version as per your system requirement.
Once downloaded, click on the .exe setup down arrow and select Open. Note: Double click also works to open the .exe setup file.
Select the Install button as highlighted to start the installation process.
Wait for a few moments to complete the Java setup.
Click the Close button once the Java is successfully installed.
Java installation only permits you to open JAR files along with the method given below. This is because Java does not associate with the .jar extension sometimes. Therefore, it is not a must but safe to follow any one of the upcoming methods to open a JAR file after installing JRE. Also Read: Fix Java Virtual Machine or JVM not found error
Method 1: Open with Java Platform Library
The fundamental and easy method to open any application is via desktop shortcut. The open with option gives you the choice to decide the type of file format that exists already in the system to run the application. Therefore, you can choose whichever format is applicable as per your need. In the same way, the JAR file can also be opened with the pre-installed file formats applicable to it. Follow the steps.
Right-click on the .jar file and select the Open with option.
Select the Java(TM) Platform SE Binary app as depicted and click OK to open the file. Note: Click More apps to find other relevant apps that enable the .jar files.
Method 2: Execute JAR through Settings App
To run the .jar directly, you need to set the Java(TM) Platform SE Binary app as default. This can be done via system settings. Follow the steps mentioned below one by one.
Hit the Windows key. Go to Settings.
Select the Apps option.
Select Default apps on the left pane.
Click Choose default apps by file type.
Scroll down and locate the .jar option. Click on the Addition symbol and add Java(TM) Platform SE binary as the default application to open the .jar file.
Once the default app is set, go back to the folder which holds the .jar file and double click it. Now, you will be able to open the file directly. Also Read: How to Play OGG Files on Windows 10
Method 3: Use Command Prompt
The JAR can also be opened using the command prompt console with a certain syntax or format. Note: The JAR file should be in executable format. To open a JAR file via command prompt, follow the steps given below.
Go to Downloads. Right-click on the Java installation .exe file and select Run as administrator.
Type Command Prompt on the Windows search bar and select Run as administrator.
Execute the java -jar c:\pathtojarfile.jar command, where mention the location path of the jar file on
. Note: Example command: java -jar C:\Users\GREEN\Desktop\test.jar
Method 4: Download a JAR file opener
A JAR opening can also be done with a third-party app. The apps support a plethora of aspects and make it easier to open, view, and edit files. Therefore, download a JAR opener of your choice. Note: 7Zip is used as an example for illustration purposes. 7zip also extracts JAR files which allows you to view the contents of the .jar package. Still, Java Runtime Environment is compulsory to run the application.
Go to the 7zip official website to download it.
Run the downloaded 7zip .exe setup file. Click on Install.
Click Close to complete the installation process.
Launch the 7zip application. Select the path of the .jar file to run it.
Also Read: How to Open GZ File in Windows 10
Method 5: Use Third-Party Executor Software
To execute the JAR file with just a click, install third-party software on your Windows 10. The executor program JARX can be used for this method. To open jar files with Java Windows 10, implement the steps given below.
Open Jarx’s official website and click Jarx-1.2-installer.exe (74 kB) as highlighted to download the setup.
Run the setup and click Install to start the installation process.
Wait for the installation to complete and click Close to finish it.
Once installed, double-click the .jar file to launch it directly.
Recommended:
14 Ways to Clear Cache in Windows 11 How to Create a Hanging Indent in Word and Google Docs How to Repair System Files on Windows 10 19 Best Free File Manager for Windows
We hope that you found this article useful and you were able to learn how to open jar files Windows 10. Let us know what you want to learn about next. You can reach out to us with your queries and suggestions via the comments section below.