really newbie: JARs

G

Guest

JAR is ZIP?

Can I compress all of my classes & files into a zip and rename it to JAR and
then run it?
 
D

dhek bhun kho

Hello Alex,

I refute that, that's bollocks. The JAR file format is the same as the ZIP file format,
with the 'added value' that you can add a META-INF directory to store
metadata. If you just zip everything you can still use it as a jar.

Greets
Bhun.
 
A

Alex Buell

I refute that, that's bollocks. The JAR file format is the same as the
ZIP file format, with the 'added value' that you can add a META-INF
directory to store metadata. If you just zip everything you can still
use it as a jar.

Of course you're quite right.
 
R

Roedy Green

Can I compress all of my classes & files into a zip and rename it to JAR and
then run it?

you use the jar utility, which also creates a manifest entry. Winzip
won't. Winzip despite repeated requests still refuses to acknowledge
jar files as archives. It will treat them as such though if you
search with the *.* option.
 
J

Jon A. Cruz

dhek said:
I refute that, that's bollocks. The JAR file format is the same as the ZIP file format,
with the 'added value' that you can add a META-INF directory to store
metadata. If you just zip everything you can still use it as a jar.

*If* you get the manifest right.

It's not as tricky as it used to be, but is a bit of a problem.


So, with the manifest info, that original "No" is technically correct.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top