You can configure settings for compilation, execution, and debugging for your project. Choose Tools > Options from the main window. In the Options window, expand the Editing node. Then select the Java Sources node. Then set the Default Compiler, Default Executor, and Default Debugger properties.

The changes are applied to your current project.