Java
JAR Commands
Create, extract, and manage JAR files. Learn about manifest configuration, executable JARs, multi-release JARs, and module packaging.
8 commands
Pro Tips
Use 'jar --create --file app.jar -e Main -C classes .' to create executable JAR with entry point.
Add '--release 17' flag to create multi-release JARs for version-specific code.
Use 'jar --describe-module --file module.jar' to inspect module information.
Common Mistakes
Manifest files must end with a newline or the last attribute will be ignored.
Signing JARs with expired certificates will cause security exceptions at runtime.