IDEA打包java程序爲jar包

1、點擊file -----> Project Structure ------->  Artifacts ------>  點擊 + 號 ,如圖所示。   2、選擇程序的啓動類,選中 extract to the target JAR 表示將程序的依賴包都加入到生成的 jar包中。 3、設置jar名稱,輸出地址,勾選Incluce in project build,點擊OK就好。 4、以後每次生
相關文章
相關標籤/搜索