如何在Netbeans中设置项目源JDK版本?

Using sdkman to install JDK 14 as:

thufir@dur:~$ 
thufir@dur:~$ which java
/home/thufir/.sdkman/candidates/java/current/bin/java
thufir@dur:~$ 
thufir@dur:~$ java -version
openjdk version "14.0.1" 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.1+7, mixed mode, sharing)
thufir@dur:~$ 
thufir@dur:~$ javac -version
javac 14.0.1
thufir@dur:~$ 

Netbeans only shows the sources as 11:

source

但有14个平台可供使用:

14

How can I set 14 as the default platform (or even remove 11), but, more importantly, set 14 as the sources version for the project as in the first screenshot?

也可以看看:

how to use Java 9 zulu from sdkman?

评论