我应该为 netbeans 使用什么 JDK?

What JDK should I use for netbeans?

在 Netbeans 8.2 中,它说要使用 Java JDK 8.1 或更高版本。当我使用最新版本的 JDK 时,Netbeans 会加载,但我无法打开或创建新项目。当我获得 8.1 时,我无法使用语言的某些功能,例如 Java.

中的计时器

我应该使用什么 JDK 来让 Netbeans 正常运行并使用 Java 的所有功能?

This document describes how to install NetBeans IDE 8.2 on your system. Please see the NetBeans IDE 8.2 Release Notes for information about supported operating systems and hardware configurations for the IDE. To learn about the new features included in this release of the IDE see the NetBeans IDE 8.2 Release Information page.

并为 Netbeans 8.2 使用 8u191 or 8u192

有些特定于 Ubuntu,或者至少 Linux:安装 Java 和 SDKman 这有点像 RVM 但对于 Java.安装非常简单,然后它将管理您的 JDK 版本。

此外,umakeubuntu-make 将安装您的 IDE 或其他开发人员工具。此实用程序最好通过 snap 包管理器安装以获得最新版本。

umake 开始,这是一个简单的命令,然后安装 NetBeans 等开发人员工具。目前这会安装 NB 8.2,它 不会 运行 在任何 JDK 9 或更高版本上。

使用 SDKman 管理您的 JDK 版本(和 gradle,以及 kotlin,等等)。使用 umake 来处理您的 IDE 版本。

我的两分钱

在接下来的一周左右,umake 应该会升级到 NetBeans o。 Apache 接手时有点混乱,但 umake 维护者在接管。 或者直接下载NB9。您必须使用较旧的 JDK,如用户 5377037 的 答案中所指定。

你为什么运行宁NB8.x?