无法安装JDK [英] Can't install JDK

查看:27
本文介绍了无法安装JDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设置 Windows 7 Ultimate 32 位的全新安装.我首先安装了 Office,然后安装了 Visual Studio 2015.除了 Java SE Development Kit 7.0.550.13 之外,一切正常.消息说安装程序失败.未知错误 -3".日志文件中给出的唯一附加信息是进程返回错误:0x80048646".

I am setting up a clean install of Windows 7 Ultimate 32-bit. I first installed Office, then I installed Visual Studio 2015. Everything worked except for Java SE Development Kit 7.0.550.13. The message said "The installer failed. Unknown error -3". The only additional information given in the log file is "Process returned error: 0x80048646".

所以我自己从 Oracle 下载了最新的 Java SE Development Kit 8u74.但是当我尝试安装它时没有任何反应.我研究了错误,大多数建议都与帐户和权限有关.这不是问题,因为我使用的是管理员帐户,所有文件和文件夹的所有权限都设置为完全控制,并且没有防病毒.

So I downloaded the latest Java SE Development Kit 8u74 from Oracle myself. But when I try to install it nothing happens. I researched the error and most of the suggestions had to do with accounts and permissions. This is not an issue because I am using the Administrator account, all permissions for all files and folders are set to Full Control, and there is no anti-virus.

当我双击安装文件时,它会在我的临时目录中创建一个名为 jds*.tmp 的文件夹,其中 * 是一个不同的数字.在该文件夹中,它创建了一个文件 jds*.tmp,其中 * 也是一个数字.不久后,该文件消失,取而代之的是一个与安装文件同名但大小略有不同的文件.安装文件名为 jdk-8u74-windows-i586,长度为 190,853,720 字节.temp目录中同名文件为190,569,048字节.又过了一小段时间,JDK 进程终止,临时文件和文件夹被删除.我设法在临时文件被删除之前保存并尝试直接运行它,但它也没有做任何事情,尽管速度更快,因为它立即终止.

When I double click the setup file it creates a folder in my temp directory called jds*.tmp, where the * is a number that varies. Within that folder it creates a file jds*.tmp, where the * is again a number. After a short time this file disappears and is replaced by a file with the same name as the setup file, but with a slightly different size. The setup file is called jdk-8u74-windows-i586 and is 190,853,720 bytes long. The file in the temp directory with the same name is 190,569,048 bytes. After another short time the JDK process terminates and the temp files and folders are deleted. I managed to save the temp file before it got deleted and tried to run it directly but it also does nothing, albeit more quickly because it terminates right away.

我在全新安装的虚拟机上测试了安装程序,它在开始时的行为方式相同.但是随后临时文件没有终止,而是作为一个单独的进程开始运行,又过了一小段时间,Windows 安装程序启动了.这导致了 Java 安装窗口.这让我想到要确保 Windows 安装程序服务正在运行,或者这可能是安装程序问题,但这也无济于事.

I tested the installer on a clean install virtual machine and it behaved the same way at the start. But then instead of terminating, the temp file started running as a separate process, and after another short time the Windows installer started. This led to the Java install window. That gave me the idea to make sure the Windows installer service was running or that it might be an installer problem, but that didn't help either.

我不确定我安装 JDK 的问题是由于 Visual Studio 失败还是其他原因造成的.似乎它必须与 VS 相关,因为这是 Windows 的全新安装,并且安装程序确实可以在干净的虚拟机上运行.

I'm not sure if my problem with installing JDK is a result of the Visual Studio failure or if it is something else. It seems like it must be VS related because this was an otherwise clean install of Windows and the installer does work on a clean virtual machine.

有什么想法可以让它发挥作用吗?

Any ideas how to can get this to work?

推荐答案

好吧,我在没有真正理解发生了什么的情况下设法安装了它.我相信主要的 JDK 可执行文件是一个包装器,用于安装其他安装文件,就像我在 temp 目录中提到的那个.该 exe 依次安装一些 .msi 文件.我所做的是使用我的 VM 机器,运行 JDK 安装程序,然后将 .msi 和 .cab 文件从 C:\Users\\AppData\LocalLow\Oracle\Java\jdk1.8.0_74 复制到问题机器的同一文件夹中.然后我直接运行 .msi 文件并且它起作用了.只花了我 4 天的工作时间……太棒了.从我所做的其他研究中,我感觉安装程序包装器中的问题在一个文件夹中创建文件,然后尝试在另一个文件夹中运行它们.但我还没有验证这个猜测.

Well without really understanding what's going on I managed to get it to install. I believe the main JDK executable is a wrapper that installs other setup files, like the one I mentioned in the temp directory. That exe in turn installs some .msi files. What I did was took my VM machine, ran the JDK installer, and copied the .msi and .cab files from C:\Users\\AppData\LocalLow\Oracle\Java\jdk1.8.0_74 to the same folder in the problem machine. I then ran the .msi file directly and it worked. And it only took me 4 days of work... fantastic. From other research I did I have a feeling that the problem in the installer wrapper creates the files in one folder then tries to run them in another. But I haven't verified this speculation.

这篇关于无法安装JDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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