idea打jar包

1.右击项目->Open Module Settings 

2.选择Artifacts->+->Jar->From modules from dependencies

3.设置META-INF/MANIFEST

 

 

 

4.勾选选项,Include in project build 和 show content of elements

 

 

5.Build->Build Artifacts

6.road.jar->build jar

7.去刚刚打到jar包的目录下(output directory)找到jar包执行

8.执行jar包

java -XX:NewSize=10485760 -XX:MaxNewSize=10485760 -XX:InitialHeapSize=20971520 -XX:MaxHeapSize=20971520 -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=15 -XX:PretenureSizeThreshold=10485760 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:gc.log -jar road.jar 

posted @ 2019-10-31 00:08  东篱闲菊  阅读(512)  评论(0编辑  收藏  举报