# linux执行jar的两种方式

1.指定了的话直接使用下面命令执行：

java -jar xxx.jar 参数


2.如果没有指定，则需要运行时手动指定：

java -cp  xxx.jar 类的路径 参数


[En]

It is better to see than to hear, and it is better to see than to do. Only by doing can we know where the problem is and can we solve it.

Original: https://www.cnblogs.com/shuai7boy/p/12819411.html
Author: shuai7boy
Title: linux执行jar的两种方式

(0)