How to Run a .Jar Java File

This wikiHow teaches you how to open and run executable JAR files on a Windows or Mac computer. JAR (Java Archive) files contain data to be used with the Java program. Most JAR files are simply containers for data that another program...

Method 1 of 2:

On Windows

  1. Picture 1 of How to Run a .Jar Java File
    Install Java on your computer if it isn't installed. You can't run JAR files without Java installed on your computer. If you don't already have Java installed, go to Java's website at https://www.java.com/en/download/ and click the Free Java Download button below the latest version of Java, then install Java once it downloads.
    1. You may have to restart your computer for Java to be fully implemented.
  2. Picture 2 of How to Run a .Jar Java File
    Double-click the JAR file. If it's executable and you have Java installed, it should open. If it doesn't open, proceed to the next step.
    1. You may see a pop-up window asking which program you want to use to open the file. If so, click Java(TM) and then click OK.
  3. Picture 3 of How to Run a .Jar Java File
    Make sure your JAR file is an executable file. JAR files that you download in order to set up programs are different from "library" JAR files, which store data that a program running Java can use. Since they don't have interfaces like executable JAR files, you cannot run non-executable JAR files.
    1. For example, many of the JAR files in a program's data folders are not executable files.
    2. If you downloaded your JAR file from online, make sure you clicked the Windows version of the file rather than the Mac version.
  4. Picture 4 of How to Run a .Jar Java File
    Update Java. If your JAR file produces an error when you double-click it, you may need to update Java. To do so:
    1. Open Start
      Picture 5 of How to Run a .Jar Java File
      .
    2. Scroll down and click the Java folder.
    3. Click Check For Updates.
    4. Click Update Now on the Update tab.
  5. Picture 6 of How to Run a .Jar Java File
    Double-click your JAR file again. If it doesn't open this time, the file you're trying to open isn't executable and thus cannot be "run" in the traditional sense.
Method 2 of 2:

On Mac

  1. Picture 7 of How to Run a .Jar Java File
    Install Java on your computer if it isn't installed. You can't run JAR files without Java installed on your computer. If you don't already have Java installed, go to Java's website at https://www.java.com/en/download/ and click the Download button below the latest version of Java, then install Java once it downloads.
    1. When installing a non-Apple file on Mac, you may have to first click OK on the warning, click the Apple menu, click System Preferences, click Security & Privacy, unlock the menu, click Open Anyway next to the file's name, and then click Open when prompted before you can install the file.
  2. Picture 8 of How to Run a .Jar Java File
    Try double-clicking your JAR file. If it's executable and you have Java installed, it should open. If double-clicking the file doesn't open it, proceed to the next step.
  3. Picture 9 of How to Run a .Jar Java File
    Make sure your JAR file is an executable file. JAR files that you download in order to set up programs are different from "library" JAR files, which store data that a program running Java can use. Since they don't have interfaces like executable JAR files, you cannot run non-executable JAR files.
    1. For example, many of the JAR files in a program's data folders are not executable files.
    2. If you downloaded your JAR file from online, make sure you downloaded the Mac version and not another operating system's version.
  4. Picture 10 of How to Run a .Jar Java File
    Update Java. If your JAR file produces an error when you double-click it, you may need to update Java. To do so:
    1. Open the Apple menu
      Picture 11 of How to Run a .Jar Java File
      .
    2. Click System Preferences.
    3. Click Java.
    4. Click the Update tab.
    5. Click Update Now.
  5. Picture 12 of How to Run a .Jar Java File
    Double-click your JAR file again. If it doesn't open this time, the file you're trying to open isn't executable and thus cannot be "run" in the traditional sense.
Update 05 March 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile