简体   繁体   English

安装JDK时出错

[英]Error installing JDK

I got following error while installing JDK 1.7 on windows 8.在 Windows 8 上安装 JDK 1.7 时出现以下错误。

"Error 1335. The cabinet file 'st170510.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from the CD-ROM, or a problem with this package." “错误 1335。此安装所需的压缩文件 'st170510.cab' 已损坏,无法使用。这可能表示网络错误、从 CD-ROM 读取错误或此程序包有问题。”

I have downloaded latest version of JDK from oracle foundation.我已经从 oracle Foundation 下载了最新版本的 JDK。 previously JDK 1.6 was installed on my pc.以前我的电脑上安装了 JDK 1.6。 I uninstalled it and tried to install this version and met this error.我卸载了它并尝试安装此版本并遇到此错误。

For further information, I have already installed JRE 1.7 on my system.有关更多信息,我已经在我的系统上安装了 JRE 1.7。

Error:错误:

"Error 1335. The cabinet file 'st170510.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from the CD-ROM, or a problem with this package."

is not because of Issue in JDK setup or as such.不是因为 JDK 设置中的问题等。

Some of the reasons may be:其中一些原因可能是:

  1. Some research suggests that this problem may arise because of bad RAM.一些研究表明,这个问题可能是由于内存不足而引起的。

    Source - https://forum.openoffice.org/en/forum/viewtopic.php?f=15&t=65872来源 - https://forum.openoffice.org/en/forum/viewtopic.php?f=15&t=65872

  2. This is a Windows Installer error that may occur for different cabinet file names located on the installation media (usually on CD).这是一个 Windows Installer 错误,可能会因安装介质(通常在 CD)上的不同 CAB 文件名而发生。

    Source - error-1335-the-cabinet-file-filecab-required-for-this-installation-is-corrupt-and-cannot-be-used-this-could-indicate-a-network-error-an-error-reading-from-the-cd-rom-or-a-problem-with-this-package源 - error-1335-the-cabinet-file-filecab-required-for-this-installation-is-corrupt-and-cannot-be-use-this-could-indicate-a-network-error-an-error-从 CD-ROM 或带有此包的问题中读取

  3. Can be caused by User Access Control.可能是由用户访问控制引起的。

    Source - http://www.symantec.com/connect/forums/error-error-1335the-cabinet-file-data1cab-required-installation-corrupt-and-cannot-be-used-co来源 - http://www.symantec.com/connect/forums/error-error-1335the-cabinet-file-data1cab-required-installation-corrupt-and-cannot-be-used-co

  4. Corrupted installer caused by a firewall or virus software running on your computer.由计算机上运行的防火墙或病毒软件导致的安装程序损坏。

    Source - http://www.tomshardware.com/forum/7992-63-error-1335-help来源 - http://www.tomshardware.com/forum/7992-63-error-1335-help

  5. Occur when the installer is unable to access the necessary files from the DVD/CD-ROM drive.当安装程序无法从 DVD/CD-ROM 驱动器访问必要文件时发生。

    Source - http://helpx.adobe.com/creative-suite/kb/install-error-1311-1335-or.html来源 - http://helpx.adobe.com/creative-suite/kb/install-error-1311-1335-or.html

Each link has its own list of steps to resolve the Issue.每个链接都有自己的解决问题的步骤列表。 Not sure what may be causing Issue in your case.不确定在您的情况下可能导致问题的原因。

You can try different solutions and see if any one can help.您可以尝试不同的解决方案,看看是否有人可以提供帮助。

Thanks!!谢谢!!

I think it has something to do with Windows "unblock" feature.我认为这与 Windows 的“解锁”功能有关。 (Rich click on file, select "unblock") (丰富的点击文件,选择“取消阻止”)

We had this issue before when we downloaded a Zip file, extracted an installed, and ran it - it failed - we had to unblock the file first - we also noticed that extracted elements were also "blocked" as well.我们之前遇到过这个问题,当我们下载一个 Zip 文件,解压缩一个已安装的文件并运行它时——它失败了——我们必须先解除对文件的阻止——我们还注意到提取的元素也被“阻止”了。

Java Install >>- On downloading using windows, file transfer speed was fast until the very end. Java 安装 >>- 在使用 windows 下载时,文件传输速度很快。 then it seemed to stall.然后它似乎停滞了。 Any attempt to install from these files produced errors and a fail.任何从这些文件安装的尝试都会产生错误和失败。

Fix >>- I then downloaded it using a MAC and then transferred the files back to the windows box and did the install again.修复 >>- 然后我使用 MAC 下载它,然后将文件传输回 Windows 框并再次安装。

This time it was perfect - no errors - good install.这次是完美的 - 没有错误 - 安装良好。

Rob

I was installing Oracle Java 8 JDK (version 111) on a Windows 10 machine.我正在 Windows 10 机器上安装 Oracle Java 8 JDK(版本 111)。 I got the same error as described in the question.我遇到了与问题中描述的相同的错误。

I disabled windows defender (all checkboxes to off), downloaded the file, went to its properties clicked unblock and apply.我禁用了 Windows Defender(所有复选框都关闭),下载了文件,转到其属性,单击取消阻止并应用。 Then the JDK installed fine.然后JDK安装正常。

I had the same problem.我有同样的问题。 After reading all the answers, I concluded that the downloaded .exe file was getting corrupt each time I download.阅读所有答案后,我得出结论,每次下载时,下载的 .exe 文件都会损坏。 Initially I used Internet Edge for the download (like 5 times) and I had the problem every time.最初我使用 Internet Edge 进行下载(例如 5 次),但每次都遇到问题。 The problem got solved when I switched to chrome browser, downloaded and installed again.当我切换到chrome浏览器,重新下载并安装时,问题得到了解决。

I faced the same problem, but with 1.8 on windows 7 (tried with jdk8u91 and jdk8u92).我遇到了同样的问题,但在 Windows 7 上使用 1.8(尝试使用 jdk8u91 和 jdk8u92)。 None of the other solutions here worked, but unchecking the "source code" and "public jre" options caused the error to not occur.此处的其他解决方案均无效,但取消选中“源代码”和“公共 jre”选项会导致错误不会发生。 Not a complete solution if you need the source code - the jre is available separately anyway - but it got me through the installer, and the jdk seems functional.如果您需要源代码,这不是一个完整的解决方案 - jre 无论如何都可以单独使用 - 但它让我通过了安装程序,并且 jdk 似乎可以正常工作。

When you meet this problem ,you compare the two files with WinMD5Free after downloading them.当您遇到此问题时,请下载后将这两个文件与 WinMD5Free 进行比较。 At first I used chrome and IDM to download the JDK files and always met with an error although I changed other versions many times.起初我使用chrome和IDM下载JDK文件,虽然我多次更改其他版本,但总是遇到错误。

Hence I use Firefox download the JDK file and problems are resolved.因此我使用Firefox下载JDK文件并解决了问题。

^_^ ^_^

OS : Windows 10 Pro操作系统:Windows 10 专业版
Java : 10.0.1爪哇:10.0.1

When trying to run the JDK installer from the "Downloads" folder I kept running into the same error (only different .cab file).尝试从“下载”文件夹运行 JDK 安装程序时,我一直遇到相同的错误(只有不同​​的 .cab 文件)。 I tried running as admin, different compatibility mode, scanning with the Windows scanner.我尝试以管理员身份运行,不同的兼容模式,使用 Windows 扫描仪进行扫描。 Nothing helped.没有任何帮助。

Then I just downloaded to Desktop.然后我只是下载到桌面。 I ran it as Administrator and Java installed without any problem.我以管理员身份运行它并安装了 Java,没有任何问题。

就我而言,我下载到另一个文件夹中..它对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM