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.

I'd like to be able to examine the contents of a JAR file without having to install Winzip or some other tool and without having to rename the file. Windows Explorer can open ZIP files just fine; is there some registry setting I can use to let it treat JARs like ZIPs?

share|improve this question

migrated from stackoverflow.com Mar 18 '10 at 21:01

This question came from our site for professional and enthusiast programmers.

4  
i wonder why this was migrated. why would anyone but a programmer be interested in this. –  Jeff Martin Mar 22 '10 at 17:45

4 Answers 4

up vote 40 down vote accepted

Or from the command line:

assoc .jar=CompressedFolder

Under Vista (or higher) you have to run this in an elevated Command Prompt.

share|improve this answer
1  
NB: for Vista and above, you'll probably need to run the command prompt with elevated privileges i.e. as Administrator. –  Mal Ross May 25 '10 at 12:45
    
works on Windows 8 as well +1. Thanks! –  yair Nov 11 '13 at 19:19

I tried exporting HKEY_CLASSES_ROOT\.zip, changing all references of '.zip' to '.jar' and importing it to HKEY_CLASSES_ROOT\.jar.

Under Vista at least it let me open a .jar file as if it were a .zip.

share|improve this answer

What you need to do is associate the JAR extension in Windows Explorer with Compressed folders. From Windows Explorer select tools / Folder Options. Then the Files Types tab. Select New and associate JAR Compressed (ZIP) Folder.

share|improve this answer

The HKEY_CLASSES_ROOT trick doesnt work under Windows 7. There mut be some compelling reason that MSFT doesnt want us to do this.

share|improve this answer
    
Worked fine for me under Windows 7. –  Brannon Nov 30 '09 at 4:29

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.