gpt4 book ai didi

java - 如何在 intellij 14.1.4 中构建可运行的 jar 文件

转载 作者:行者123 更新时间:2023-11-30 10:38:24 24 4
gpt4 key购买 nike

我在使用 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.

关于java - 如何在 intellij 14.1.4 中构建可运行的 jar 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39709841/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com