MATLAB Answers

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

6 views (last 30 days)
Simon Seitz
Simon Seitz on 14 Nov 2018
Edited: Simon Seitz on 14 Nov 2018
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.


Sign in to comment.

Answers (0)