天天看点

IntelliJ打包可执行的Jar包

手动生成可执行jar包,也算是原理,参看点击打开链接

由于我经常用IntelliJ做为开发工具,所以也实践了一下IntelliJ打包过程。

1.project structure

IntelliJ打包可执行的Jar包
IntelliJ打包可执行的Jar包

2.新建jar包

IntelliJ打包可执行的Jar包
IntelliJ打包可执行的Jar包

3.选择main class

IntelliJ打包可执行的Jar包
IntelliJ打包可执行的Jar包

4.新建manifest

IntelliJ打包可执行的Jar包
IntelliJ打包可执行的Jar包

5.配置classpath和main class

IntelliJ打包可执行的Jar包
IntelliJ打包可执行的Jar包

6.build

IntelliJ打包可执行的Jar包
IntelliJ打包可执行的Jar包

7.结果

IntelliJ打包可执行的Jar包
IntelliJ打包可执行的Jar包
IntelliJ打包可执行的Jar包
IntelliJ打包可执行的Jar包