frequently ask ? : Computers : Programming : Languages : Java

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 1 people (0%) answered Yes
Recently 0 of 1 people (0%) answered Yes

Entry

Java: Jar.exe: Operation: Get: How to extract a class from a .jar file?

Apr 22nd, 2006 16:52
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 22 April 2021 - 11:57 pm ----------------------
Java: Jar.exe: Operation: Get: How to extract a class from a .jar file?
---
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 -xvf <your .jar filename> <your .class you want to 
extract>
      E.g.
       jar.exe -tvf HelloWorld.jar HelloWorld.class
 3. -That will show a screen output similar to the following:
--- cut here: begin --------------------------------------------------
C:\> jar.exe -xvf HelloWorld.jar HelloWorld.class
 inflated: HelloWorld.class
--- cut here: end ----------------------------------------------------
===
Internet: see also:
---
----------------------------------------------------------------------