Reputation: 431
I have an jar file. I want to see the contents of that jar file, but when I try to unzip that file I am getting an error like java.util.ZipException: error opening zip file.
I used the command *jar tvf jar_file_name * in command prompt.
I think that file is password protected or something else. Is there any way to open that file so that I can see the contents.
Thankyou.
Upvotes: 0
Views: 1777
Reputation: 1500385
It sounds like the file is just broken - for example, you may have fetched it by FTP in text mode, instead of binary, or if you downloaded it programmatically you may have a bug in your download code.
As a quick test, try renaming it to a zip file and open it with WinZip or whatever your favourite zip file client is. That will confirm whether or not it's really bust.
I don't believe there's any such thing as a password-protected jar file.
Upvotes: 1