Results 1 to 4 of 4

Thread: .jar and .zip

  1. #1
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    Location
    CA, USA
    Posts
    265
    Rep Power
    6

    Default .jar and .zip

    I uploaded a .jar file I made to my site. When I downloaded it to make sure it worked, it saved as a .zip. Does anyone know what might have happened?

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    What do you mean by "it saved as a zip"? If you mean that the file name changed, then the downloading software screwed up.

    Otherwise note a jar file is a zip file: that is, it has a zip file's format. It is quite possible for other software to treat it as a zip file: for example WinZip will extract the contents. This includes desktop manager software that might have given it a zip file's icon, or associated it with a generic unzip program so that that program gets invoked when you double click the icon.

  3. #3
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    Location
    CA, USA
    Posts
    265
    Rep Power
    6

    Default

    Ah, so I guess WinRAR is treating it as a .zip? The only way I got it to work is by renaming it from filename.zip to filename.jar. I guess I'll go read up on this then, thanks.

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    So you're saying the file got renamed?

    Some Windows programs try to be very "helpful" with regard to file extensions, but I'd count that as a bug.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •