Home >Java >javaTutorial >How to use Idea to export a java project into an executable jar (picture and text)
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
2. Select Artifacts>JAP>From modules with dependencies
3. Select a class with a main method as Start the class, then OK
4. Build the project Click Build Artifacts, and then select Build
5. The project out directory is the built jar file, and then you can start the java program using java -jar swing.jar
Related recommendations:
ubuntu googlepinyin and idea problemsYosemite Intellij idea php settings xdebug single-step debuggingThe 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!