IE6将jar变成了zip [英] IE6 turns jar into zip

查看:136
本文介绍了IE6将jar变成了zip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Windows服务器,我有一个文件路径,当您单击该按钮时,执行jar文件并运行该程序。至少在firefox中。 IE6出现问题。它需要我的file.jar并将其转换为file.zip。这里有什么建议吗?

Using windows server, I have a path to a file that, when you click the button, executes the jar file and runs the program. At least in firefox. The problem occurs with IE6. It takes my file.jar and turns it into file.zip. Any suggestions here?

推荐答案

Firefox可以先通过扩展名确定正确的mime类型,并检查标题信息以查明是否有一致的比赛。 IE6遗憾的是没有。

Firefox can determine correct mime-type by extension first, and check header information to find out if there's a congruent match. IE6 unfortunately doesn't.

JAR文件实际上是一个ZIP文件(将JAR文件重命名为zip并且可以使用Winzip轻松打开)更改JAR mime -type to application / java-archive

JAR file is actually is a ZIP file (rename a JAR file to zip and it'll be opened easily with Winzip) change the JAR mime-type to "application/java-archive".

更新

关于IIS:

Update
On IIS:


  1. 选择要在IIS中配置的站点,右键单击并选择属性

  2. 在HTTP标题选项卡下,选择MIME地图部分下的文件类型,然后选择新类型

  3. 键入 .jar 作为关联的扩展名和 application / java-archive 作为内容类型。

  4. 选择确定,您就可以开始了!

  5. 重新启动IIS。

  1. Select the site to configure in IIS, right click and select "Properties"
  2. Under HTTP Headers Tab, select "File Types" under the MIME Map section and select "New Type"
  3. Type ".jar" as the associated extension and "application/java-archive" as the content type.
  4. Select "OK" and you're ready to go!
  5. Restart IIS.

这篇关于IE6将jar变成了zip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆