Does anyone know where I can get the source code to the utility JAR itself ?  
Author Message
Mike





PostPosted: 2005-8-26 0:50:00 Top

java-programmer, Does anyone know where I can get the source code to the utility JAR itself ? Or, failing that, JAVA source code to *A* JAR utility ?
(I can deal with it being written in java)

 
Andrew Thompson





PostPosted: 2005-8-26 0:59:00 Top

java-programmer >> Does anyone know where I can get the source code to the utility JAR itself ? On 25 Aug 2005 09:50:01 -0700, Mike wrote:

> Or, failing that, JAVA source code to *A* JAR utility ?
> (I can deal with it being written in java)

Well, here..
<http://www.physci.org/source.jsp?class=java.util.jar.JarFile>
<http://www.physci.org/source.jsp?class=java.util.jar.JarOutputStream>
(etcetera..)

--
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"I knew it was you who did it with your voodoo.."
Divinyls 'Siren (Never Let You Go)'
 
jan V





PostPosted: 2005-8-26 1:00:00 Top

java-programmer >> Does anyone know where I can get the source code to the utility JAR itself ? > Or, failing that, JAVA source code to *A* JAR utility ?
> (I can deal with it being written in java)

You can obtain the complete build sources for the latest JDK. So you'll get
the source code to jar.exe as a very small facet of the whole thing. Go to
Sun's site for more info.



 
 
Roedy Green





PostPosted: 2005-8-26 8:15:00 Top

java-programmer >> Does anyone know where I can get the source code to the utility JAR itself ? On 25 Aug 2005 09:50:01 -0700, "Mike" <email***@***.com>
wrote or quoted :

>Or, failing that, JAVA source code to *A* JAR utility ?
>(I can deal with it being written in java)

Have a look at the ZipFile ZipOutputStream and ZipEntry classes. You
can cook up a jar utility pretty easily if you don't want to get fancy
with signing.

You might examine the source code of the Replicator how it builds zip
files and takes them apart. See
http://mindprod.com/products1.html#REPLICATOR
Look at the Fetch and the ProcessZips classes.

If you can't find one, and you don't feel up to doing it yourself, I
could write you one to your spec for a fee. PResumably you don't need
all the jar.exe features.

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
 
 
Roedy Green





PostPosted: 2005-8-26 17:09:00 Top

java-programmer >> Does anyone know where I can get the source code to the utility JAR itself ? On Thu, 25 Aug 2005 16:59:30 GMT, "jan V" <email***@***.com> wrote or quoted
:

>You can obtain the complete build sources for the latest JDK. So you'll get
>the source code to jar.exe as a very small facet of the whole thing. Go to
>Sun's site for more info.

go to http://mindprod.com/jgloss/jdk.html
and click download. The Source option is near the bottom of Sun's
download page.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.