IDEA 中打Jar包方式,包括輸出Jar包依賴第三方Jar包方式
1.新增需要依賴的Jar包到庫中

2.command + ; 開啟 Project Structure 或者點選File中也可以 選中module 在需要的jar包上打鉤 新增依賴

3.如果直接使用第3步就可以成功,那以上兩步都是廢話 安全起見都搞一下。 command + ; 再次開啟Project Structure 再次開啟

選擇入口檔案

選擇生成方式和Manifest檔案路徑

配置介面最重要

去除無用配置,並且把右上角的Other選擇為Jar

選擇MANIFEST檔案

雙擊選擇compileoutput

為輸出Jar包新增依賴Jar包

最終配資

使用
