How can I change the default SDK for Netbeans 12.2?

When setting up Netbeans 12.2, one part of the installer lets you select the JavaSDK that you’ll use as the Default. Is there any way to change this later on, like when a new version of the JavaSDK …

NetBeans 12.0: “Class does not have a main method” (but it does)

NetBeans 12.0 Jdk 15 I cannot launch my program, clicking the green run button doesn’t do anything, and right click + run file on MainFrame gives the error “Class does not have a main method”…