Java : create jar executable with dependant jars embedded
I have created an executable JAR with the manifest: Manifest-Version: 1.0 Main-Class: MyClass Class-Path: lib/ext.jar I can successfully run this JAR if I have folder lib with dependent ext.jar in the folder of .jar created. I would like to embed ext.jar in my executable JAR to launch it anywhere I want, without creating lib folder. This would allow the JAR file to be self-contained, including all of its dependencies. Is there any way to do this? gigadot The default Java class loader cannot find an embedded jar inside a jar file. You will need to set your Java program to use a class loader