Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
"jar -uvf" to Update a JAR with New Files
What is the "jar" command to update an existing JAR file with new or additional files?
✍: FYIcenter.com
To update an existing JAR file with new or additional files, you can use the "jar -uvf jarname files" command.
For example, the following session updates an existing JAR file with some additional classes:
\fyicenter>"%java_home%\bin\jar" -xvf jms.jar \fyicenter>"%java_home%\bin\jar" -cvf myNew.jar .\javax \fyicenter>"%java_home%\bin\javac" Hello.java \fyicenter>"%java_home%\bin\jar" -uvf myNew.jar Hello.class adding: Hello.class(in = 416) (out= 286)(deflated 31%) \fyicenter>"%java_home%\bin\jar" -tf myNew.jar META-INF/ META-INF/MANIFEST.MF javax/ javax/jms/ javax/jms/BytesMessage.class javax/jms/Connection.class javax/jms/ConnectionConsumer.class ... javax/jms/XATopicConnectionFactory.class javax/jms/XATopicSession.class Hello.class
Back to FAQ for JDK JAR (Java ARchive) Tool.
2016-09-25, 3627🔥, 1💬
Popular Posts:
What Is commons-lang3-3.1.jar? commons-lang3-3.1.jar is the JAR file for Apache Commons Lang 3.1, wh...
JDK 11 jdk.httpserver.jmod is the JMOD file for JDK 11 HTTP Server module. JDK 11 HTTP Server module...
What Is ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is the JAR files of ojdbc.jar, JD...
JDK 11 jdk.crypto.ec.jmod is the JMOD file for JDK 11 Crypto EC module. JDK 11 Crypto EC module comp...
What Is poi-scratchpad-5.2.3.jar ?poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5....