Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to generate jar package and realize single process running by java

Shulou Source: shulou.com Published: 2022-05-31 11:02:33 09月23日 Update

This article is a detailed introduction to "how java generates jar packages and realizes single process operation". The content is detailed, the steps are clear, and the details are properly handled. I hope this article "how java generates jar packages and realizes single process operation" can help you solve doubts. The following is a detailed introduction to learn new knowledge together.

java file package jar run

Effective steps:

1. cmd to the current directory (for example, the directory where the default package main class is located) set classpath = directory where the default package main class is located

2. javac main class.java

3.java Main Class Name

4. Write a list file

Manifest-Version: 1.0 Created-By: 1.8.0 (Sun Microsystems Inc.) Main-Class: Main class name

created-by Version number unknown-> cmd input java -version

5. jar cfm custom.jar MANIFEST.MF *.class

6. Customize a bat file (batch file is the default entry if occupied by decompression application)

Content: javaw-jar Customization.jar

7. Double-click the bat file to get the above two files in a computer equipped with jdk can run

Java basic data types are divided into:

1. Integer type, used to represent the data type of integer.

Floating-point type, used to represent decimal data types.

3. Character type, the keyword of character type is "char".

Boolean type is the basic data type that represents logical values.

Read here, this article "java how to generate jar package and achieve a single process run" article has been introduced, want to master the knowledge of this article also need to practice to understand, if you want to know more about the content of the article, welcome to pay attention to the industry information channel.

Tags: Type file run data process generation content article directory class name entry character location integer step proper valid two keyword Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Information Redmi OPPO Reno Apple