javajar

How can I change manifest file in Java


How i can change class-path in mainfest file.

I have external jar file in folder:

Class-Path: folder/AbsoluteLayout.jar

I want to add my external jar file to my JAR MyProject.jar and change mainfast.. What should I write in mainfestu to link against the library into my jar..

Class-Path: path to my externalJar in MyProject.jar

enter image description here

I hope you understand, thank you :-)


Solution

  • You can do :

    jar cfm jar-file manifest-addition input-file(s)
    

    More info: