Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


ZIP Metadata Deployment

ZIP Metadata Deployment

ZIP Metadata Deployment

Hi all,

I am posting here because I cannot find the answers through Google, and JAR files frequently do what I need. How do you add metadata to JAR files?

The Real Issue: I have a Chrome/Opera extension which is packaged up as a renamed ZIP file (i.e. JAR/OEX/CRX). I want these archived files to expose expose information (i.e. name, url, version, date) without extracting the files.

JAR archives often contain metadata stored in a meta.xml that does exactly what I need. If I simply compress a meta.xml file using a ZIP tool and rename to JAR, the content will be compressed and not used as metadata.

As I understand it, JAR is just a renamed ZIP. How do you embed metadata in a ZIP/JAR file?

Many thanks!

--Glen :)

RE: ZIP Metadata Deployment

I could be wrong, but I don't think my question has anything to do with Java's META-INF/* directory.

Based on the ./jar tutorials I have seen, files in the META-INF directory are typically compressed/decompressed and have nothing to do with exposing information from the archive's metadata/header.

Also, the developers at Open Office expose a whole XML document as metadata in their distribution. I basically want to know how they do that.

--Glen :)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close