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?
feedback
|
migrated from stackoverflow.com Mar 18 '10 at 21:01
This question came from our site for professional and enthusiast programmers.
|
Or from the command line:
| |||||
feedback
|
|
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. | |||
|
feedback
|
|
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. | |||
|
feedback
|
|
The HKEY_CLASSES_ROOT trick doesnt work under Windows 7. There mut be some compelling reason that MSFT doesnt want us to do this. | |||
|
feedback
|
|
The command line approached worked for me on win 7. I ran the command in an elevated prompt, but I don't know if that was necessary. | |||
|
feedback
|
