运行 jar 文件
Today we will learn how to run JAR File in java. In last tutorial we learned how to create jar file. Here we will learn how to run jar file from command line and some other aspects of using jar file.
今天,我们将学习如何在Java中运行JAR文件。 在上一个教程中,我们学习了如何创建jar文件 。 在这里,我们将学习如何从命令行运行jar文件以及使用jar文件的其他方面。
如何运行JAR文件 (How to run JAR File)
We can run a jar file using java command but it requires Main-Class
entry in jar manifest file.
我们可以使用java命令运行jar文件,但需要jar清单文件中的Main-Class
条目。
Main-Class is the entry point of the