How To Run A JAR File On Windows 7,8,10: Windows apps are mainly packaged as installers or executable files. An app installer has the MSI extension and an executable file has the EXE extension. At times, a developer may choose to zip an EXE file. This is done because browsers will block an EXE from downloading thinking it is malicious. Similarly, some email services and clients may not let users attach or download an EXE file.
Windows users are, therefore, used to extracting an EXE from a zipped folder in order to run it. While normal, this can be confusing if you’ve downloaded a JAR file. The JAR file will be associated with the 7zip or Winzip apps. The archive app will be able to extract the JAR file but there isn’t going to be anything in it that you can run. Here’s how to run a JAR file on Windows.
You may also like: How To Uninstall A UWP App In Windows 10
How To Run A JAR File On Windows
What Is A JAR File?
A JAR file is a Java file. JAR is the file extension for Java files. Apps are built to run on the JAVA framework. Minecraft (the desktop version) is one common example of an app that requires Java installed on your system to run. Minecraft itself is packaged as an EXE file so you never have to run a JAR file with it.
The JAR file is a pure Java app that hasn’t been packaged into an EXE. Windows alone cannot run it.
In order to run a JAR file on Windows, you need to install Java on your system. Check if the file you wish to run requires a specific version of Java to run. If the developer hasn’t specified a version, download and installs the latest version of Java on your system.
How to Run A JAR File on windows
The file association of the JAR file will not change once you’ve installed Java. Go to the folder the JAR file is in. Right-click it and go to the ‘Open with’ option. Select ‘Choose another app’. You will see ‘Java(TM) Platform SE binary’ listed in this context menu but don’t select it. Select the ‘Choose another app’ option.
The ‘How do you wish to open this file?’ the menu will pop up. Choose ‘Java(TM) Platform SE binary’ and check the ‘Always use this app to open .jar files’ option at the bottom. Click ‘Ok’.
You may also like: How To Get The Android O Developer Preview
The file will now open. All future JAR files that you download will now be associated with Java. You will only have to double click a JAR file to run it. The next JAR file you download will not be associated with an archive app. Instead, the file’s icon will be the official Java file icon.
Run A JAR File On Windows: Install Java