When I try to link up a jar file to my website, and the user tries to download it, the file downloads as a .ZIP file instead of a .JAR.
Is there a way to fix this?
Note: I am using webs.com as my website server.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What server are you using to serve the file? The configured MIME type is probably not configured properly for
*.jarfiles. Ideally, it should be set toapplication/java-archive.I would guess that currently, it is set to
application/zip– or is being auto-detected as such based on the content of the JAR file – which is a derivative of a ZIP file and would be detected as a ZIP file.