Make sure that the java environment configuration is completed before the jar package is created.
Verification method: cmd command line input: jar.exe, the following interface appears, which means that the jar package can be generated.
Enter the command: jar -cvf the name of the jar package to be generated to be generated jar path
Enter to generate.
Note: The generated files are saved in the current path by default.