Home  >  Article  >  Java  >  How to use Idea to export a java project into an executable jar (picture and text)

How to use Idea to export a java project into an executable jar (picture and text)

坏嘻嘻
坏嘻嘻Original
2018-09-14 15:43:438379browse

I found that writing code in Ubuntu is a painful thing. We are developing under Linux, not developing Linux. Delete ibus. I really don’t know who developed ibus. It is very difficult to use and difficult to use with idea. Now let's introduce how to use Idea to export a java project into an executable jar.

The following steps can export the Java project into an executable jar

1. Open the Project Structure

How to use Idea to export a java project into an executable jar (picture and text)

2. Select Artifacts>JAP>From modules with dependencies

How to use Idea to export a java project into an executable jar (picture and text)

3. Select a class with a main method as Start the class, then OK

How to use Idea to export a java project into an executable jar (picture and text)

4. Build the project Click Build Artifacts, and then select Build

How to use Idea to export a java project into an executable jar (picture and text)

How to use Idea to export a java project into an executable jar (picture and text)5. The project out directory is the built jar file, and then you can start the java program using java -jar swing.jar

How to use Idea to export a java project into an executable jar (picture and text) Related recommendations:

ubuntu googlepinyin and idea problems

Yosemite Intellij idea php settings xdebug single-step debugging

The above is the detailed content of How to use Idea to export a java project into an executable jar (picture and text). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn