在 Windows 10 中安装 Netbeans 的问题:在此计算机上找不到 Java SE 开发工具包 (JDK)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/46506282/
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-12 02:23:43  来源:igfitidea点击:

Issue installing Netbeans in Windows 10: Java SE Development Kit (JDK) was not found on this computer

javanetbeansjava-8java-7

提问by someplaceinthemall

I'm trying to install the TMC Netbeans version on Windows 10. I'm getting this error:

我正在尝试在 Windows 10 上安装 TMC Netbeans 版本。我收到此错误:

Java SE Development Kit (JDK) was not found on this computer

在这台计算机上找不到 Java SE 开发工具包 (JDK)

JDK 7 is required for installing Netbeans with TMC 1.1.8. Make sure that the JDK is properly installed and run installer again. You can specify valid JDK location using --javahome installer argument.

使用 TMC 1.1.8 安装 Netbeans 需要 JDK 7。确保 JDK 已正确安装并再次运行安装程序。您可以使用 --javahome 安装程序参数指定有效的 JDK 位置。

I got the same error using the regular version of Netbeans. I know it is installed correctly because I got IntelliJ to work just fine. How do I fix this issue? I've been searching for answers, but I haven't found anything for Windows 10?

使用普通版本的 Netbeans 时,我遇到了同样的错误。我知道它安装正确,因为我让 IntelliJ 工作得很好。我该如何解决这个问题?我一直在寻找答案,但没有找到适用于 Windows 10 的任何内容?

Also, I have JDK 9 installed.

另外,我安装了 JDK 9。

回答by skandhan

Took me some time to overcome this. This is what I did: 1.During installation of JDK change the path from jdk-9.x.x to jdk 2.open netbeans installer location in command prompt and type: netbeans.exe --javahome "C:\Program Files\Java\jdk"

我花了一些时间来克服这一点。这就是我所做的: 1. 在安装 JDK 期间将路径从 jdk-9.xx 更改为 jdk 2. 在命令提示符中打开 netbeans 安装程序位置并键入: netbeans.exe --javahome "C:\Program Files\Java\ jdk"

回答by Anuj Sain

Open cmd > Change directory to wherever your netbeans executable installer is present > type {name of the netbeans executable installer}.exe --javahome"C:\Program Files\Java\{name of the jdk folder}

打开 cmd > 将目录更改为 netbeans 可执行安装程序所在的位置 > 键入{ netbeans 可执行安装程序的名称}.exe --javahome"C:\Program Files\Java\{ jdk 文件夹的名称}

This worked for me.

这对我有用。

回答by Thuanhb

I think you setting Environment variables for java wrong. You should check Environment variables for java installation

我认为您为 java 设置环境变量是错误的。您应该检查 Java 安装的环境变量

JAVAHOME : C:\Program Files\Java\jdk-9.0.4

JAVAHOME : C:\Program Files\Java\jdk-9.0.4

path : C:\Program Files\Java\jdk-9.0.4\bin

小路 : C:\Program Files\Java\jdk-9.0.4\bin

回答by Manish KIni

Just install java 8. because java 10 is not work properly with netbeans

只需安装 java 8. 因为 java 10 不能与 netbeans 正常工作

回答by Jean H Mai

  1. Download and install: a. jdk-10.0.2_windows-x64_bin; b. jre-8u181-windows-x64 c. netbeans-8.2-windows.
  1. 下载并安装:jdk-10.0.2_windows-x64_bin; 湾 jre-8u181-windows-x64 c. netbeans-8.2-windows。

回答by user10276967

On Win10 I tried this and it works: 1. jdk-8u181-windows-x64.exe 2. netbeans-8.2-windows.exe This works. Else, with JDK 10, I got everytime the error message listed in this Topic.

在 Win10 上,我尝试了这个并且它有效: 1. jdk-8u181-windows-x64.exe 2. netbeans-8.2-windows.exe 这有效。否则,使用 JDK 10,我每次都会收到本主题中列出的错误消息。

回答by Ben

Download and install jdk-8u181.exe for Netbeans 8.2 to install properly. Its a requirement under the Netbeans 8.2 installation instructions

下载并安装 jdk-8u181.exe for Netbeans 8.2 以正确安装。它是 Netbeans 8.2 安装说明下的要求

Netbeans with JDK

带有 JDK 的 Netbeans

https://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-3413139-esa.html

https://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-3413139-esa.html

回答by Mohamed Abo Elkhair

Just install java 8. Because java 10 is not work properly with netbeans. Download and install jdk-8u181.exefor Netbeans 8.2 to install properly.

只需安装 java 8。因为 java 10 不能与 netbeans 正常工作。下载并安装jdk-8u181.exeNetbeans 8.2 以正确安装。

回答by Norman Potts

I just had the same error. I downloaded the netbeans IDE then downloaded the JDK, still had the error. I restarted my computer and tried the installer again and it worked.

我只是有同样的错误。我下载了netbeans IDE,然后下载了JDK,仍然有错误。我重新启动了我的计算机并再次尝试安装程序,它工作正常。