Articles > Java > Basics > How to create Java Executable JAR with JAR dependencies
How to create Java Executable JAR with JAR dependencies
The following example shows creating an executable JAR file with other JAR dependencies.
First create a simple standalone java application, for instance a simple Swing UI application
with two dependent libraries (commons-lang3-3.0.1.jar and commons-io-2.1.jar).
Create a manifest file manifest.txt with Main-Class attribute.
Ensure to enter a new line at the end of manifest file.
Otherwise some systems may throw failed to load Main-Class error.