An executable program, the Java program (xxx.jar) is introduced here, and lzj.jar is used below to illustrate
2. File structure
Simulate a Linux file structure in any directory , here select /home/LZJ/file
The outer large files are named freely. Take project as an example, mkdir /home/LZJ/file/project, after cd project, create a three-level directory, mkdir DEBIAN, mkdir usr, mkdir opt
Create control, copyright, postinst and other files under DEBIAN
Create a share directory under the usr directory, and create applications and icons under the share directory
Put the executable program lzj.jar in the opt directory (xxx.desktop file configures the Exec execution command)