简体   繁体   中英

How to update a jar file after change in manifest file and lib folder?

I have hadoop-1.0.3.jar . I made few changes in lib folder(add external jar) and manifest file now i want to rebuild jar file with name hadoop-1.0.4.jar . How can I achieve this?

In the shell, run:

jar cvfm hadoop-1.0.4.jar Manifest.txt [list of files you want to package into your jar file]

You can run jar --help in the shell to check the different options available.

Basically, this particular command means:

-c: Create new jar file.

-v: Verbose output.

-f: Specify the packaged file name.

-m: Include the manifest file.

The rest should be fairly easy to understand (output name, manifest file, list of files to be packaged).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM