What is a .jar file? A jar file is a small file project generated by a Java project. It can also be described as a Java compressed package, which encapsulates many Java classes, methods, and variables. How do we open Jar files through Java? Below, the editor will tell you about the operation process of opening a .jar file.
First, after installing the java environment, press the Windows R key and enter "CMD" (case-insensitive) in the pop-up run box.
Switch to the directory where the .jar file is located. My .jar file directory is: F:\install.
Then enter java -jar ****.jar, **** represents the name of the .jar file to be run.
#After pressing the Enter key again, the .jar file will run successfully.
php Chinese website, a large number of free Java introductory tutorials, welcome to learn online!
The above is the detailed content of How to open java .jar. For more information, please follow other related articles on the PHP Chinese website!