File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes JAR - help!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JAR - help!!!!" Watch "JAR - help!!!!" New topic

JAR - help!!!!

Charmaine Gatling

Joined: Jan 10, 2002
Posts: 11
I'm trying to view the contents of a jar file. I used jar -tvf filename.jar and it only shows that the manifest file is in there. Oddly, it works for some jar files but not for others. What am I doing wrong?
Tom Purl
Ranch Hand

Joined: May 24, 2002
Posts: 104
I don't know why the "tvf" switch isn't working for you. Have you tried the switches without the preceeding hyphen?
If you're still having problems, you can view .jar files using WinZip on win32. If you're using Linux, then you may (???) be able to use the unzip utility.

Tom Purl<br />SCJP 1.4
Charmaine Gatling

Joined: Jan 10, 2002
Posts: 11
Thanks!! I didn't know I could use WinZip to view jar files. I figured it out. The file somehow became corrupt or unreadable during the ftp process. I just changed it from ASCII to BINARY and it worked.
I agree. Here's the link:
subject: JAR - help!!!!
jQuery in Action, 3rd edition