On the Windows platform, Java-based apps were once common. They weren’t ideal because Java apps were resource intensive, but there were few alternatives. Java applications are still available, though not in the numbers that they once were. The Java version of Minecraft, which outperforms the Bedrock/UWP version in many ways, is one of the most popular Java apps.

A Jar file is essentially a Java file that requires the Java runtime to open.

How to open Jar files on Windows 10

Java files

Although many apps use Java, this does not mean that when you run a Java-based app, you will always be running JAR files. It’s possible that you’re still running an EXE file. However, a purely Java-based file can still be found.

You may come across the JAR or JRE file extension when dealing with Java files. Both can be run in the same way, but you’ll need to have the Java runtime installed on your computer. It’s possible that it’s already installed on your system, but you don’t have the correct version to run the Java file.

Related: How to install optional updates on Windows 10

Check for Java Runtime

You must first check if you have the Java runtime installed on your system before you can open a JRE or JAR file on Windows 10.

  1. Open Command Prompt.
  2. Run the following command.
java -version
  1. If the command returns ‘java’ is not recognized as an internal or external command,
    operable program or batch file.’, that means you do not have Java installed on your system.

How to Run a Jar file on Windows 10

Now that we’ve established whether or not you have Java installed, we can proceed to opening a JAR file. The first step is to get Java installed.

Install Java runtime

  1. The official Java website can be found here.
  2. Click the Agree and Download button after clicking the Download button.
  3. Java will be installed if you run the EXE file that was downloaded.
  4. When the installation is complete, you will receive a message stating that the installation was successful.
  5. Open Command Prompt and type the following command to verify the installation. It will return the Java
  6. version that is currently installed.
java -version

How to open Jar files on Windows 10

1. How to Open JAR files – Open With

The icon of the JAR file should change to show it is associated with Java after installing the Java runtime. You can open Jar files the file by double-clicking it. Follow the steps below if the file won’t open or the icon hasn’t been updated.

  1. Right-click the JAR file and select Open With… from the context menu.
  2. From the menu that opens, select Java(TM) Platform SE binary.
  3. Check the ‘Always use this app to open .jar files’.
  4. The icon for the JAR file will be updated and for all JAR files on your system, you can now double-click and open them.

How to open Jar files on Windows 10

2. How to Open JAR files – Settings app

When using the Open With context menu option, files are not always associated with their default apps. If the first method doesn’t work and you can’t open a JAR file by double-clicking it, try the next one.

  1. Open the Settings app.
  2. Go to the Apps group of settings.
  3. Select the Default Apps tab.
  4. Scroll to the bottom, and click Choose default apps by file type.
  5. Scroll down the list of extensions and find .JAR.
  6. Click the plus button.
  7. In the window that opens, select Java(TM) Platform SE binary.
  8. While you’re at it, you might want to do the same for all the other Java file formats listed.

3. Open JAR file – Command Prompt

JAR files can be opened from the Command Prompt.

  1. Open Command Prompt. You do not need admin rights.
  2. Find the complete path to the JAR file that you want to open.
  3. Use the following command to open the file.
java -jar complete path to file


Troubleshoot JAR files

Java has been around for a long time, and it is still being updated. However, it still hasn’t resolved all of the issues it had in its early years, which is why you might have trouble opening a JAR file.

  1. Check to see if Java is allowed to run on your computer and if Windows Defender hasn’t blocked it. Allow a JAR file on your system if it is flagged and you know it is safe.
  2. Because version compatibility is sometimes an issue, you should check the Java version. You’ll have to downgrade the JAR file to the correct version if it hasn’t been updated to run on the latest version of Java.
  3. If a file says it requires Java to open, but it downloads as a ZIP or RAR, you’ll need to extract it first.

Related: How to Fix Static Sound in Windows 10


Java is no longer as widely used as it once was. When knowledge of the platform was more widespread, opening JAR, JAVA, and JRE files was not as difficult, but it has since become somewhat obscure. Some Java-based apps include files that allow them to run without having to install the official runtime, making it difficult to tell if they are using Java.