Download ArticleDownload Article

This How.com.vn 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 needs to run with Java; therefore you cannot run these files and nothing will happen when you double-click them. Similarly, most executable JAR files are downloaded as installation files to install applications or programs. Therefore, you should double check that you have the right JAR file designed for your operating system if you are having problems opening the file.

Method 1
Method 1 of 2:

On Windows

Download Article
  1. How.com.vn English: Step 1 Install Java...
    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.
    • You may have to restart your computer for Java to be fully implemented.
  2. How.com.vn English: Step 2 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.
    • 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.
    Advertisement
  3. How.com.vn English: Step 3 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.
    • For example, many of the JAR files in a program's data folders are not executable files.
    • If you downloaded your JAR file from online, make sure you clicked the Windows version of the file rather than the Mac version.
  4. How.com.vn English: Step 4 Update Java.
    If your JAR file produces an error when you double-click it, you may need to update Java. To do so:
    • Open Start
      How.com.vn English: Windows Start
      .
    • Scroll down and click the Java folder.
    • Click Check For Updates.
    • Click Update Now on the Update tab.
  5. How.com.vn English: Step 5 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.
  6. Advertisement
Method 2
Method 2 of 2:

On Mac

Download Article
  1. How.com.vn English: Step 1 Install Java...
    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.
    • 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. How.com.vn English: Step 2 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. How.com.vn English: Step 3 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.
    • For example, many of the JAR files in a program's data folders are not executable files.
    • If you downloaded your JAR file from online, make sure you downloaded the Mac version and not another operating system's version.
  4. How.com.vn English: Step 4 Update Java.
    If your JAR file produces an error when you double-click it, you may need to update Java. To do so:
    • Open the Apple menu
      How.com.vn English: Mac Apple
      .
    • Click System Preferences.
    • Click Java.
    • Click the Update tab.
    • Click Update Now.
  5. How.com.vn English: Step 5 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.
  6. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How can I download multiple .jar files while playing Minecraft?
    How.com.vn English: Community Answer
    Community Answer
    You just download them. Minecraft won't affect it unless your computer is really old and slow.
  • Question
    How do I use this on Linux?
    How.com.vn English: Community Answer
    Community Answer
    You use the command: "java -jar ". You can also run these files by clicking on them on some distros of Linux, but it does not happen on most.
  • Question
    Why doesn't the .Jar file I created run?
    How.com.vn English: Community Answer
    Community Answer
    You created it as some sort of place where you'll archive things. Even though you created a jar file, it doesn't mean that it is an executable, so it won't run.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      • Java programs should work on all platforms. If one does not, either it was not coded properly, or it is a very specialized program that calls on system resources or other programs.
      • A .jar file may be a program or a library. If it's a library, it has no executable class inside and thus there is no use in running it.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Java is safer than most programming languages, but malware written in Java still exists. Be cautious of running JAR files downloaded from online.
      Advertisement

      Expert Interview

      Thanks for reading our article! If you’d like to learn more about fixing computer issues, check out our in-depth interview with Chiara Corsaro.

      About This Article

      How.com.vn English: Chiara Corsaro
      Written by:
      Phone & Computer Repair Technician
      This article was written by Chiara Corsaro and by How.com.vn staff writer, Jack Lloyd. Chiara Corsaro is the General Manager and Apple Certified Mac & iOS Technician for macVolks, Inc., an Apple Authorized Service Provider located in the San Francisco Bay Area. macVolks, Inc. was founded in 1990, is accredited by the Better Business Bureau (BBB) with an A+ rating, and is part of the Apple Consultants Network (ACN). This article has been viewed 2,178,157 times.
      How helpful is this?
      Co-authors: 40
      Updated: February 13, 2024
      Views: 2,178,157
      Categories: Software
      Article SummaryX

      1.Install Java on your computer.
      2.Make sure the JAR file is executable.
      3.Double-click the JAR file to open it.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 2,178,157 times.

      Reader Success Stories

      • How.com.vn English: Noah Macelroy

        Noah Macelroy

        Jul 31, 2017

        "This was really helpful and all the other websites never told me to do anything. Now I can download mods on my..." more
      Share your story

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement