Hi All,
I am trying to create a jar file which is custom utility. I need to package some extra 3rd party jars along with this jar & I am adding the same as part of manifest file when creating the custom jar file.
So here is the manifest file
---------------manifest.mf--------------------
Manifest-Version: 1.0
Created-By:
Test User
Main-Class: au.com.test.integration.EventListener.class
Class-Path: activation-1.0.2.jar commons-codec-1.3.jar others.jar
-----------------------------------
Now when i run the jar utility something like this
_________________________________________
jar cfm testlistener.jar manifest.mf *.*
_________________________________________
So in the packaged testlistener.jar the manifest.mf under META-INF looks like this
---------------manifest.mf--------------------
Manifest-Version: 1.0
Created-By: Test User
Main-Class: au.com.test.integration.EventListener.class
-----------------------------------
It just skips the Class-Path attribute when creating the custom jar file.
Can anyone let me know if the above is the right way for doing the same.
Also i wanted to know if i create a separate folder called lib for all teh helper jars to my custom jar file then how do i put the same in my Class-Path attribute of Manifest.MF.
I tried to find the same but did not get much help on the same. How do i append the folder name in front of the jar file path.
Do let me know your comments on the same.
Regards,
Udayan