Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
reading .jar files
Mark Volkmann
12/28/2006 6:51:00 PM
How can I read the entries in a Java .jar file from Ruby?
I tried the standard library Zlib, but that doesn't work ... I think
because .jar files use the zip format instead of the gzip format.
I tried the rubyzip library at
http://rubyzip.source...
. For
some reason that didn't get to all the entries in the file, only
"META-INF/" and "META-INF/MANIFEST.MF".
2 Answers
Michael P. Soulier
12/28/2006 10:44:00 PM
0
On 12/28/06, Mark Volkmann <r.mark.volkmann@gmail.com> wrote:
> How can I read the entries in a Java .jar file from Ruby?
>
> I tried the standard library Zlib, but that doesn't work ... I think
> because .jar files use the zip format instead of the gzip format.
>
> I tried the rubyzip library at
http://rubyzip.source...
. For
> some reason that didn't get to all the entries in the file, only
> "META-INF/" and "META-INF/MANIFEST.MF".
Perhaps you should simply call the jar program, or unzip, instead of
trying to read the file directly.
Mike
--
Michael P. Soulier <msoulier@digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein
Thomas Sondergaard
12/30/2006 12:14:00 PM
0
Mark Volkmann wrote:
> How can I read the entries in a Java .jar file from Ruby?
>
> I tried the standard library Zlib, but that doesn't work ... I think
> because .jar files use the zip format instead of the gzip format.
>
> I tried the rubyzip library at
http://rubyzip.source...
. For some
> reason that didn't get to all the entries in the file, only "META-INF/"
> and "META-INF/MANIFEST.MF".
>
rubyzip should be able to read the jar file. Can you send me a .jar file
that is causing you problems.
Best regards,
Thomas Sondergaard
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
reading .jar files
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password