如何在intelliji 14.1.4中构建一个可运行的jar文件

时间:2016-09-26 18:26:35

标签: java intellij-idea intellij-14

我在使用intelliji EDK创建一个可运行的jar文件时遇到了问题,我之前在Eclipse EDK中尝试过这个问题并且它是成功的,但我似乎没有找到任何运气之一。

1 个答案:

答案 0 :(得分:0)

按照以下步骤使用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.
相关问题