Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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: lpn.rnbhq.org/tools/xemacs/emacs_ref.html –  user163069 Oct 5 '12 at 9:12
1  
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.

http://www.iunarchive.com/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.