gpt4 book ai didi

android - 在 Windows 7 中找不到 jdk

转载 作者:行者123 更新时间:2023-11-29 05:55:28 30 4
gpt4 key购买 nike

我已经在我的 Windows 7(64 位)机器上安装了 jdk-7u7-windows-x64,但是当我尝试安装到 installer_r20.0.3-windows 时,给出了我出现以下错误

Java SE Development Kit not found. Failed to find Java version on "C:\Windows\system32\java.exe". The system cannot find the file specified

我已将系统变量 JAVA_HOME 设置为

%Program Files%\Java\jre7\bin

但这并没有帮助。

最佳答案

您设置的是 jre 路径而不是 jdk 路径。安装 JDK 后,默认路径类似于 C:\Program Files\Java\jdk1.7.07。将其作为 JAVA_HOME 添加到路径中,然后在命令行中使用 cmd javac -version 测试安装。

关于android - 在 Windows 7 中找不到 jdk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12337490/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com