6

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!

2
  • 1
    In the old days they would. Not now. Best bet is the IntelliJ community edition which brings the Java to run on so java 15 only applies to your own code. Sep 18, 2020 at 11:53
  • 1
    @ThorbjørnRavnAndersen OK, thanks! Sep 18, 2020 at 18:38

1 Answer 1

6

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

About screen of NB 12.1 running JDK 15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.