That said, I’ve always felt that creating a JAR in IDEA is not very intuitive. In my case, I went with creating a new one. Refer to Packaging the application in a JAR for an example of how to create and build a JAR artifact. This is still an issue in 2017, I hope it will help somebody out there! This is important so don’t forget to do that. Just press ‘+’ button in the Project Structure dialog and select the appropriate item:. In artifacts tab, you will see a small + button on top right corner. Point to the created .jar (HelloWorld:jar) and select Build. The JAR contents are decompressed and then packaged together with the module output in a single JAR. To do that, click the Create Archive button in the Output Layout tab. 2) It doesn’t handle this: https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html#AppendingTransformer. copy to the output directory and link via manifest. The JAR files are copied to the artifact output directory as is. Video on how to create/build a jar file with IntelliJ IDEA. 1. Step 10: The 3 main steps here are to: select an output folder for the MANIFEST.MF file, select the main class and enter the class path. For informaiton on how to create and run the JAR file, refer to Create an artifact configuration for the JAR. I’m going to select the root module as the location for this ([project home]/root), and IntelliJ IDEA creates a META-INF folder here with a MANIFEST.MF file. JAR manifest: IntelliJ IDEA will pass a long classpath via a temporary classpath.jar. As for the class path, I just enter the name of each JAR file that I’ve included in the project. Let's create a Gradle project with Java. From the main menu, select Build | Build Artifacts. Make sure to create the Manifest file. The way the JAR files from the module libraries are processed: extract to the target JAR. Keep default location for Manifest file. In artifacts tab, you will see a small + button on top right corner. So your end result of this step should look like this: Step 11: At this point you are all set. While Eclipse is a great free IDE, IDEA does bring a lot more to the table and is worth the price IMHO. I found 2 possibilities to create working jar-s under IntelliJ 2017.2. Frustrating. MF file from the project if it already has one or create a new one. Both methods work but I like this better as it keeps your code separate from 3rd party JAR files. I am using Intellij IDEA 12.1.3 on MAC OS X 10.8.3 to create an executable jar file. Well, everything is complicated until you figure it out so today I decided to take a few minutes and un-complicate it. Now I can press OK to save all these settings. Make sure to create the Manifest file. i.e. Click it and fill up the right panel data such as name and output directory. This is still an issue in 2017, I hope it will help somebody out there! You will now see IDEA create the artifcat in the ../out/artifacts/.. folder. Before creating a new Gradle project, familiarize yourself with the help topic Creating a new Gradle project, which is a tutorial for creating general Gradle projects in IntelliJ IDEA. Creating artifact from IntelliJ: Go to project structure: Create a new artifact: Select the main class, and be sure to change the manifest folder: You have to change manifest … Step 2: In the Project Structure dialog box, select Artifacts. After choosing Main-Class in the artifact creation page, Intellij will add automatically the following path \src\java\META-INF\MANIFEST.MF. The references to the JARs are added to the Class-Path header field of the MANIFEST.MF file that is packaged in the same JAR as the module output. I always go with the src folder as the output folder. Creating artifact from IntelliJ: Go to project structure: Create a new artifact: Select the main class, and be sure to change the manifest folder: You have to change manifest … You could also go with From module with dependencies and have IDEA configure it all for you. IntelliJ presents me with buttons to either "Create Manifest..." or "Use Existing Manifest...". IntelliJ has different process to build war: Goto -> Files -> Project Structure -> Artifacts. Then I click on multi-release.jar and press the “Create Manifest” button. If you are regularly being negative as well as really feeling down, after that you are going to bring in and also manifest unfavorable power. Step 8: If you did everything correctly, your final settings dialog should look something like this with both the 3rd party JARs and your JAR configured correctly. These JAR files will now be present in the same directory as the compiled output of your code. Apply the changes and close the dialog. * I am building a Kotlin + Java application using IntelliJ 2019.3.1 Community, on Windows 10 Pro, with Gradle. IntelliJ has different process to build war: Goto -> Files -> Project Structure -> Artifacts. In the Output Layout tab, under the Available Elements panel, select any 3rd party JAR files that you’d like to include with your JAR file and choose Put into Output Root in the context which appears when you right click on your selection.