I have not worked on java till now.... But i need to include the jar file into my project.
I have one jar created already with me. But i need to update this jar file. I don't have source of those project.
It has folder structure like follow
1. folder which has .class file.
2. com folder
3. de folder
4. META-INF folder contains MANIFEST.INF file and Maven folder
5. org folder
6. config.properties
7. abc.builds.properties
I need to update config.properties
and create new jar file.
Can anybody help me in this?
The procedure is roughly this:
The better way than integrating the classes of the other jar within your jar is to declasr within your jar that you want to use the other jar.
The procedure is roughly this:
src/
. Class-Path = theOther.jar
for mor information see here: http://docs.oracle.com/javase/tutorial/deployment/jar/
The Jar tool provides a u
option which you can use to update the contents of an existing JAR file by modifying its manifest or by adding files. Command for adding files has this format:
jar uf jar-file input-file(s)
Existing file will get update.
I think Stephen C has given the solution. In fact you should
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.