jar包发布

jar包发布:

方法1.普通jar:export->java->JAR file->select path->select Main class

java -cp xxx.jar:xxx.jar main

方法2.runable jar:export->java->Runnable JAR file->Launch configuration(需要先创建一个服务)->select path->Package required libraries in to generated JAR

java -cp -jar

你可能感兴趣的:(jar包发布)