If you haven’t installed a JDK in your PC, you can install together JDK and Netbeans, click here and follow these steps:
You must accept the Code License Agreement to continue and selected one version:
When the last version of Java SE Development Kit was installed, follow these steps to install and configure NetBeans:
The box with the label "JDK for the NetBeans IDE", shows a the last version installed:
Click install to start the installation and next steps.
If you want see these images bigger, you click here: