Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 645 Bytes

File metadata and controls

24 lines (16 loc) · 645 Bytes

Update Manifest inside JAR

Create a file, manifest-attributes.txt, and add new properties, e.g.

Class-Path: additional.jar

Then

jar umf manifest-attributes.txt test.jar

If the JAR file is in a container, then copy manifest-attributes.txt into a volume.

docker exec my-container jar umf /bindmount/manifest-attributes.txt test.jar

References

  1. How to update the manifest file in a JAR file
  2. Updating a JAR File