【问题标题】:how to build a runnable jar file in intelliji 14.1.4如何在 intellij 14.1.4 中构建可运行的 jar 文件
【发布时间】:2016-09-26 18:26:35
【问题描述】:

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

【问题讨论】:

  • 你尝试了什么?您需要在“项目结构”对话框中配置一个工件。
  • 是的,先生,我确实尝试过,但我不能再进一步了。

标签: java intellij-idea intellij-14


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-11-14
    • 2013-03-21
    • 1970-01-01
    • 1970-01-01
    • 2018-04-14
    • 1970-01-01
    • 2017-06-04
    相关资源
    最近更新 更多