Entry
Java: Jar.exe: How to update a class in a .jar file? [replace]
Apr 22nd, 2006 16:59
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 23 April 2021 - 00:03 am ----------------------
Java: Jar.exe: How to update a class in a .jar file? [replace]
===
Steps: Overview:
1. -Possibly download and install the Sun Java SDK
(as this installs the file jar.exe)
2. -Open an MSDOS box and type the following command:
jar.exe -uvf <your .jar filename> <your updated .class>
E.g.
jar.exe -uvf HelloWorld.jar HelloWorld.class
3. -That will show a screen output similar to the following:
--- cut here: begin --------------------------------------------------
C:\> jar.exe -uvf HelloWorld.jar HelloWorld.class
adding: HelloWorld.class (in = 544) (out= 347) (deflated 36%)
--- cut here: end ----------------------------------------------------
===
Internet: see also:
---
----------------------------------------------------------------------