Java 安装JDK时出错

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22476795/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 15:58:52  来源:igfitidea点击:

Error installing JDK

javawindows

提问by Chandra Prakash

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. previously JDK 1.6 was installed on my pc. I uninstalled it and tried to install this version and met this error.

我已经从 oracle Foundation 下载了最新版本的 JDK。以前我的电脑上安装了 JDK 1.6。我卸载了它并尝试安装此版本并遇到此错误。

For further information, I have already installed JRE 1.7 on my system.

有关更多信息,我已经在我的系统上安装了 JRE 1.7。

采纳答案by Aduait Pokhriyal

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

  2. This is a Windows Installer error that may occur for different cabinet file names located on the installation media (usually on CD).

    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

  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

  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

  5. Occur when the installer is unable to access the necessary files from the DVD/CD-ROM drive.

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

  1. 一些研究表明,这个问题可能是由于内存不足而引起的。

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

  2. 这是一个 Windows Installer 错误,可能会因安装介质(通常在 CD)上的不同 CAB 文件名而发生。

    源 - 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. 可能是由用户访问控制引起的。

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

  4. 由计算机上运行的防火墙或病毒软件导致的安装程序损坏。

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

  5. 当安装程序无法从 DVD/CD-ROM 驱动器访问必要的文件时发生。

    来源 - 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!!

谢谢!!

回答by Robert W

I think it has something to do with Windows "unblock" feature. (Rich click on file, select "unblock")

我认为这与 Windows 的“解锁”功能有关。(丰富的点击文件,选择“取消阻止”)

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. then it seemed to stall. Any attempt to install from these files produced errors and a fail.

Java 安装 >>- 在使用 windows 下载时,文件传输速度很快。然后它似乎停滞了。任何从这些文件安装的尝试都会产生错误和失败。

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

回答by Kristopher Noronha

I faced the same problem, but with 1.8 on windows 7 (tried with jdk8u91 and jdk8u92). None of the other solutions here worked, but unchecking the "source code" and "public jre" options caused the error to not occur. 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.

我遇到了同样的问题,但在 Windows 7 上使用 1.8(尝试使用 jdk8u91 和 jdk8u92)。此处的其他解决方案均无效,但取消选中“源代码”和“公共 jre”选项会导致错误不会发生。如果您需要源代码,这不是一个完整的解决方案 - jre 无论如何都可以单独使用 - 但它让我通过了安装程序,并且 jdk 似乎可以正常工作。

回答by David Vonka

I was installing Oracle Java 8 JDK (version 111) on a Windows 10 machine. I got the same error as described in the question.

我正在 Windows 10 机器上安装 Oracle Java 8 JDK(版本 111)。我遇到了与问题中描述的相同的错误。

I disabled windows defender (all checkboxes to off), downloaded the file, went to its properties clicked unblock and apply. Then the JDK installed fine.

我禁用了 Windows Defender(所有复选框都关闭),下载了文件,转到其属性,单击取消阻止并应用。然后JDK安装正常。

回答by ayo alatishe

I had the same problem. After reading all the answers, I concluded that the downloaded .exe file was getting corrupt each time I download. Initially I used Internet Edge for the download (like 5 times) and I had the problem every time. The problem got solved when I switched to chrome browser, downloaded and installed again.

我有同样的问题。阅读所有答案后,我得出结论,每次下载时,下载的 .exe 文件都会损坏。最初我使用 Internet Edge 进行下载(例如 5 次),但每次都遇到问题。当我切换到chrome浏览器,重新下载并安装时,问题得到了解决。

回答by shadow

When you meet this problem ,you compare the two files with WinMD5Free after downloading them. 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.

当您遇到此问题时,请下载后将这两个文件与 WinMD5Free 进行比较。起初我使用chrome和IDM下载JDK文件,虽然我多次更改其他版本,但总是遇到错误。

Hence I use Firefox download the JDK file and problems are resolved.

因此我使用Firefox下载JDK文件并解决了问题。

^_^

^_^

回答by Igorski

OS: Windows 10 Pro
Java: 10.0.1

操作系统:Windows 10 专业版
Java: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). I tried running as admin, different compatibility mode, scanning with the Windows scanner. Nothing helped.

尝试从“下载”文件夹运行 JDK 安装程序时,我一直遇到相同的错误(只有不同​​的 .cab 文件)。我尝试以管理员身份运行,不同的兼容模式,使用 Windows 扫描仪进行扫描。没有任何帮助。

Then I just downloaded to Desktop. I ran it as Administrator and Java installed without any problem.

然后我只是下载到桌面。我以管理员身份运行它并安装了 Java,没有任何问题。