You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
495 B
33 lines
495 B
#### 1、在$OpenJDK$下安装$jar$命令
|
|
|
|
```
|
|
yum install java-1.8.0-openjdk-devel
|
|
```
|
|
|
|
#### 2、列出$jar$包里面的所有文件及文件夹
|
|
|
|
```shell
|
|
cd /usr/local/mini/gw-charge/target
|
|
jar tf gw-charge.jar
|
|
```
|
|
|
|
#### 3、解压$JAR$包
|
|
|
|
```shell
|
|
# 解压 jar 到gw-charge目录下
|
|
unzip gw-charge.jar -d gw-charge
|
|
```
|
|
|
|
#### 4、修改配置文件或添加$class$
|
|
|
|
```shell
|
|
略
|
|
```
|
|
|
|
#### 5、打包$JAR$
|
|
|
|
```shell
|
|
jar cvfM0 gw-charge.jar ./gw-charge/*
|
|
```
|
|
|