Apache NetBeans 12.1支持JDK 15吗?

huangapple go评论74阅读模式
英文:

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.1支持JDK 15吗?

英文:

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);
    }
}

Apache NetBeans 12.1支持JDK 15吗?

huangapple
  • 本文由 发表于 2020年9月18日 19:26:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/63954870.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定