GeeCON Prague 2014*
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
Author

JAR - help!!!!

Charmaine Gatling
Greenhorn

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: JAR - help!!!!