0

On OSX operating system, Netbeans does not provide an option to create a java class, when I have opened New dialog.

On Windows operating system, this option is available:

Netbeans on Windows

But on OSX operating system, this option is missing:

Netbeans on OSX

How can I resolve this issue?

  • Upon installing Netbeans, have you selected `Java` support in installation options? –  May 17 '17 at 11:56

1 Answers1

0

Make sure you have downloaded and installed Java Development Kit (JDK). It is possible that you have only Java Runtime Envoronment installed, but JDK is not installed on your system.

Next step, uninstall Netbeans you have already installed on your system and navigate to Netbeans Downloads Page

According to your needs, choose Java SE, Java EE or All option on this page and download the installer.

Netbeans downloads page

As you have downloaded the installer, launch it and make sure that Java support is included to the installation options.

Java Standard Edition support included

In case you want to customize installation options, use the Customize button, shown on the picture above.

Just make sure, that you have enabled Java SE (Java Standard Edition) support.

Community
  • 1
  • 1
  • I've replicated your steps up till the installer part but there isn't any customisation button for me to click. I've also checked the plugins installed and it seems that Java is already installed, just that it doesn't come up as an option as shown above. – Khairul Hafis May 18 '17 at 12:34
  • @KhairulHafis In this case, if it is a buggy behavior, please report this issue to the Netbeans community: https://netbeans.org/community/index.html –  Jun 22 '17 at 02:57