

Manifest-Version : manifest file version.Ĭlass-Path: The application or extension class loader uses the value of this attribute to construct its internal search path. We're not going into deep details - let's stay focused on the options we have defined. The MANIFEST.FM file contains details on how the JAR file will be used. Note: There will be the only one MANIFEST.FM file per JAR file. Let's open the newly created MANIFEST.FM file and put in a basic description.

Inside the folder SRC/MAIN/RESOURCES, we create the META-INF folder, and then inside, we place MANIFEST.FM file there. The package can be found in the folder SRC/MAIN/JAVA of our sample project structure. The example project structure is following the Maven Standard Directory Layout structure./libsĪs our intent is to create an executable JAR file, we have to create a main class. Opening up your comand line, let's start with creation of a simple project folder: executable-one. The goal of this first part is to create an executable JAR file. What will you do then ? Part 1: Compile ExecutableOne.jar ( GitHub) But let's say you only have the command line and no Internet access. The most famous IDEs (IntelliJ, Eclipse, or NetBeans) offer building tools and implementation immediately. In the world of build tools ( Ant, Maven, or Gradle) it might not even seem useful to think about the command line. This article is a unification of my blog posts reviewing the possibility of creating fat JARs (Java Archive file) in Java without using any additional plugin, IDE, or any other tool - just pure command line and Java.
