How can I include additional information in the META-INF/MANIFEST.MF of a java jar-file using the Library Compiler

27 views (last 30 days)
I'm creating a jar-file out of a Matlab script function using the Library Compiler app (java package). This jar-file then is included in a java application. In this application, I read the content of the META-INF/MANIFEST.MF of the created jar-file in order to display additional information regarding the jar-file (e.g. "Implementation-Title" and "Implementation-Version")
As a default, the Library Compiler only adds the "Manifest-Version" and the "Created-By" to the MANIFEST.MF. Now it would be nice, if it would be possible to directly include additional manifest information directly in the Library Compiler user interface. For example, the "Library information" (e.g name, version, author...) could directly be added to the MANIFEST.MF.
At the moment, I insert additional information manually in the MANIFEST.MF file (respectively I wrote a batch file which includes information out of a text file)
Is there an easy way to include additional information directly in the Library Compiler interface?
I'm using Matlab R2018a and JDK 1.8.0_181.

Answers (1)

Christian Schneider
Christian Schneider on 6 Mar 2024
I would like to know this as well and could not find information about it in the documentation, nor this forum. Is there really no option for mcc to do that? (using MatLab R2022b)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!