Deliver Your Java Application in One-JAR™!

Copyright 2004-2007 by P. Simon Tuffs, All Rights Reserved.

Quick Links:

download one-jar SDK

one-jar at

licensing information Logo

Manifest Attributes

One-JAR uses manifest attributes to control its operation. The purpose of these attributes is described in the following table. The manifest file paths are relative to the top of the One-JAR archive.

One-Jar-Main-ClassMETA-INF/MANIFEST.MFOptional: specifies the main class instead of looking in main/main.jar
Specifies the main class inside main.jar. You can use the One-Jar-Main-Class attribute instead.
One-Jar-ExpandMETA-INF/MANIFEST.MFOptional: specifies which files and/or directories to expand into the filesystem. Files can only be expanded into a tree underneath the location where the One-JAR archive is executed. This is a comma-separated list of prefixes, e.g. One-Jar-Expand: file.txt,doc/ will expand file.txt, and all files in the doc directory.
One-Jar-Show-ExpandMETA-INF/MANIFEST.MFtrue: show the file expansions.
One-Jar-Confirm-ExpandMETA-INF/MANIFEST.MFtrue: confirm file expansions by the user.

If you like One-JAR then you might want to check out some of the other Open-Source projects developed by
soap-stone at XML Instance Generator Eclipse JAR Plugin Yet Another Compiler Compiler Language