Loading...
avatar
Articles
48
Tags
35
Categories
45

Home
Archives
Tags
Categories
James's Blog
Search
Home
Archives
Tags
Categories

How to generate runnable jar

Created2022-11-20|Updated2023-03-19|Intellij
|Post View:

mainfest設定

maingest是用來定義擴充或檔案打包相關資料,產生可執行的Jar檔需要在build.gradle設定Main-Class Path

1
2
3
4
5
jar {
manifest {
attributes 'Main-Class': 'com.swj.demo.DemoApplication'
}
}

執行build gradle

build_gradle

Jar檔產生路徑

runnable_jar


reference

  • Mainfest files - wiki
  • Create runnable JAR
  • 怎麼使用 Intellij 包可執行的 JAR 檔呢? - MichaelXiao
Author: James Syu
Link: https://jamessyu.com/2022/11/20/2022-2022-11-20-intellij-generate-runnable-jar/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Jar
cover of previous post
Previous Post
Windows 執行Java -jar發生的問題
cover of next post
Next Post
CSS Notebook
Related Articles
cover
2022-11-20
Windows 執行Java -jar發生的問題

Comment
avatar
James Syu
Articles
48
Tags
35
Categories
45
Follow Me
Announcement
做一位努力累積實力,而不只是累積年資的工程師
Catalog
  1. 1. mainfest設定
  2. 2. 執行build gradle
  3. 3. Jar檔產生路徑
  4. 4. reference
Recent Post
即將失傳的古老技藝 Vim - 學習筆記2023-03-19
修改cmder prompt lamda symbol2023-03-07
電腦各式接頭2023-03-05
金融業清算交割運作機制2023-02-06
outlook郵件規則設定執行python2023-01-03
©2020 - 2023 By James Syu
Framework Hexo|Theme Butterfly
Local search
Loading the Database