Java 在用于 netbeans 8.2 的计算机上找不到 JDK

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

JDK was not found on the computer for netbeans 8.2

javanetbeansnetbeans-8.2

提问by florian de wulf

I got the following message when opening netbeans that jdk has not been found on this computer. I have got the jdk installed, and set the bin directory in the environment. Btw, I am using Windows 10 pro 64 bit.

我在打开netbeans时收到以下消息,在这台计算机上没有找到jdk。我已经安装了jdk,并在环境中设置了bin目录。顺便说一句,我使用的是 Windows 10 pro 64 位。

I have tried this in the command prompt.

我在命令提示符下试过这个。

C:\Users\admin\Downloads>netbeans-8.2-windows.exe --javahome "C:\Program Files (x86)\Java\jdk-10.0.2"

but then i get this message.

但后来我收到了这条消息。

It's only the launcher stub.
OS: x64

Does someane know what i can do about this? Thanks.

有人知道我能做些什么吗?谢谢。

采纳答案by sethsource

Java 8 is still the standard for now. Uninstall java 10 and install this and reset your env vars.

Java 8 目前仍然是标准。卸载 java 10 并安装它并重置您的环境变量。

http://www.oracle.com/technetwork/pt/java/javase/downloads/jdk8-downloads-2133151.html

http://www.oracle.com/technetwork/pt/java/javase/downloads/jdk8-downloads-2133151.html

回答by Tharaka Ratnayake

Your computer is 64bit. so your jdk should be in Program Files not Program Files(x86)

你的电脑是64位的。所以你的 jdk 应该在 Program Files 而不是 Program Files(x86)

C:\Users\admin\Downloads>netbeans-8.2-windows.exe -javahome "C:\Program Files\Java\jdk-10.0.2"

回答by Bertram Gilfoyle

JDK 8 was the latest version at time of NetBeans 8.2 is developed. For that reason, JDK 8 is required for installing and running all NetBeans Bundles of version 8.0 - 8.02. They do not run on JDK 9 or later.

JDK 8 是 NetBeans 8.2 开发时的最新版本。因此,安装和运行 8.0 - 8.02 版的所有 NetBeans 捆绑包都需要 JDK 8。它们不在 JDK 9 或更高版本上运行。

Download JDK 8
Download latest version of NetBeans

下载 JDK 8
下载最新版本的 NetBeans