英文:
Does Apache NetBeans 12.1 support JDK 15?
问题
Oracle最近发布了JDK 15,我想知道最新版本的NetBeans IDE,即Apache NetBeans 12.1,是否支持JDK 15。我了解NetBeans没有官方支持JDK 15,但我想问问是否有人知道它是否非官方支持。谢谢!
英文:
Oracle recently released JDK 15, and I'm wondering if Apache NetBeans 12.1, the latest version of the NetBeans IDE, supports JDK 15. I understand that NetBeans doesn't officially support JDK 15, but I'm asking if anyone knows that it unofficially supports it. Thanks!
答案1
得分: 6
Apache NetBeans 12 特性更新 1(NB 12.1)于 2020 年 9 月 1 日发布;JDK 15 于 2020 年 9 月 15 日发布。JDK 15 在 NetBeans 12.1 之后发布,因此官方不提供支持。
此外,正如NetBeans 下载页面所提到的,JDK 14 是 NetBeans 12.1 发布时的最新 JDK 版本。
然而,我下载了 NB 12.1 和 JDK 15 并进行了尝试。似乎没有任何问题。我还使用 JDK 15 的文本块创建了一个简单的 Hello World 示例,它按预期工作(如下所示代码)。
public class NewClass {
public static void main(String[] args) {
String txtblock = """
hello world
""";
System.out.println(txtblock);
}
}
英文:
Apache NetBeans 12 feature update 1 (NB 12.1) was released on September 1, 2020; JDK 15 was released on September 15, 2020. JDK 15 was released after NetBeans 12.1 so it is not officially supported.
Also as mentioned by the NetBeans download page, JDK 14 was the latest JDK version at the time when NetBeans 12.1 was released.
However I downloaded NB 12.1 and JDK 15 and tried it. It seems to have no problems. I also created a simple hello world example using JDK 15's text block and it works as expected (code below).
public class NewClass {
public static void main(String[] args){
String txtblock = """
hello world
""";
System.out.println(txtblock);
}
}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论