1

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

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

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

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

It's only the launcher stub.
OS: x64

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

4

3 回答 3

3

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

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

于 2018-08-03T16:20:21.530 回答
0

你的电脑是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"
于 2018-08-06T08:37:42.653 回答
0

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.

Download JDK 8
Download latest version of NetBeans

于 2019-02-06T10:32:03.803 回答