The method of making Java programs into jar packages and executing them on the CMD command line

preface

As we all know, a Java application project can be packaged into a jar. Of course, you must specify a main class with main function as the program entry of your jar package. This article will introduce the contents related to the execution of Java programs in jar packages under the CMD command line, and share them for your reference and learning. I won't say more below. Let's take a look at the detailed introduction together.

1、 Pack

2、 Modifying the configuration file enables the program to reference third-party jar packages

1. Create a new folder to store this item

------------The third-party jar package is stored in a separate folder (under lib here) (the key point is that lib should be in the same directory as weixin.jar)

------------Picture resources should be placed in and Weixin Jar in the same directory (the key point is to let the program find the pictures, which is related to the project build directory)

2. Modify the configuration file

3、 Java - jar Weixin The jar mode can be run on the CMD command line

summary

The above is the whole content of this article. I hope the content of this article has a certain reference value for your study or work. If you have any questions, you can leave a message. Thank you for your support for programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>