jar --create --file jar文件名 -C 要包含的文件夹内容 --main-class Main类名 --create 表示建立jar --file 指定了jar文件名 -C 要包含的文件夹内容 --main-class 指定main方法所在的类