The first time I saw a. jar file I didn't know what the ghost was, thought it was a compressed package, and it was unpacked, but it didn't work. So here's a detailed description of how to open the. jar file and how to run the. jar file. What is a. jar file, simply a Java compact package, can be opened with a Java virtual machine.
Tools/Materials
Method One
- 1
Before opening the. jar file, make sure that the Java JDK (Java Development Environment) is installed in the computer, press the Windows+r key, enter cmd (case-insensitive) in the Run box that pops up in the lower-left corner, and click OK.
- 2
In the black box that appears, enter Javac, and then hit enter, if it appears, the computer has been installed JDK, or you must first install the JDK to operate, the following links to detailed how to install the Java environment and how to configure the Java environment, you can install the step installation.
22 How to install the Java environment and how to configure the Java environment
- 3
If the JDK is installed, you can find the. jar file that needs to be opened, right-click the file, select Open With, select Java (TM) Platform SE binary.
- 4
You can open the. jar file normally, for the. jar file that was opened successfully at the next.
END
Method Two
- 1
Under the condition of installing the Java environment, press the WINDOWS+R key and enter cmd (case insensitive) in the popup Run box. If the Java environment is not installed, the following links explain in detail how to install the Java environment and how to configure the Java environment, you can install the step installation.
22 How to install the Java environment and how to configure the Java environment
- 2
In the black box that pops up, switch to the directory where the. jar file is located, under the. jar File directory:
F:\install, so switch to F:\install. :
- 3
Enter Java-jar ****.jar,**** in the black box to indicate the. jar file name to run:
- 4
After hitting the ENTER key, the. jar file starts to run successfully.
END
Precautions
- You must install the JDK before running the. jar file.
- Https://jingyan.baidu.com/article/e8cdb32b2963fc37052bad2f.html
How to open a. jar format file, how to run the. jar format File