簡體   English   中英

如何在 intelliji 14.1.4 中構建可運行的 jar 文件

[英]how to build a runnable jar file in intelliji 14.1.4

我在使用 intelliji EDK 創建可運行的 jar 文件時遇到問題,我之前在 Eclipse EDK 中嘗試過這個,並且成功了,但我似乎沒有找到任何運氣。

按照以下步驟使用 IntelliJ IDEA 14.1.4 創建 .jar:

1.File > Save All.
2.Run driver or class with main method.
3.File > Project Structure.Select Tab "Artifacts".
4.Click green plus button near top of window.
5.Select JAR from Add drop down menu. 
6.Select "From modules with dependencies"Select main class. 
7.The radio button should be selecting "extract to the target JAR." 
8.Press OK.Check the box "Build on make"Press apply and OK.
9.From the main menu, select the build dropdown.
10.Select the option build artifacts.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM