Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I edit the content of a jar file without unzipping its content in Mac OS X?

7z client allows this on windows but I could not find a similar way to do this on Max OSX.

By editing i really mean deleting files or directories, moving files around, etc.

share|improve this question

On Mac OS X terminal you can use emacs to edit files within a jar. Just type:

emacs somejar.jar

You can then browse all the files in the jar, open, save, whatever using standard emacs commands. Any changes you make will automatically be applied to the jar (no need to manually unjar anything).

share|improve this answer
Thanks, as far as I have seen you can edit the files in the jar themselves. You cannot though move directories and delete files, or I am mistaken here? – user1173810 Oct 5 '12 at 6:09
I would check the emacs command list here, specifically the 'directory editor' section: – user163069 Oct 5 '12 at 9:12
Also possible with vim: vim somejar.jar – Adam Lindberg Jan 7 '13 at 10:58

If you want a graphical program iUnarchive it a good tool. It does cost some money though.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .