Apache NetBeans 12.1 是否支持 JDK 15? [英] Does Apache NetBeans 12.1 support JDK 15?

查看:47
本文介绍了Apache NetBeans 12.1 是否支持 JDK 15?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Oracle 最近发布了 JDK 15,我想知道 NetBeans IDE 的最新版本 Apache NetBeans 12.1 是否支持 JDK 15.我知道 NetBeans 不正式支持 JDK 15,但我想知道是否有人知道它非正式地支持它.谢谢!

解决方案

Apache NetBeans 12 功能更新 1 (NB 12.1) 于 2020 年 9 月 1 日发布;JDK 15 于 2020 年 9 月 15 日发布.JDK 15 是在 NetBeans 12.1 之后发布的,因此不受官方支持.同样如

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!

解决方案

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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆