Issue “unable to find the JDK in the system” can occur while doing a new installation or in existing installed NetBeans. This can be resolved by following very easy steps:
In New Installation
To resolve this issue while doing a new installation follow below-mentioned steps:
- Open Command Prompt in “Run As Administrator” Mode
2. Go to the directory, where NetBeans has been downloaded in the system using Command Prompt.
C:\Users\user name>cd Downloads
3. Now run the command
C:\Users\user name\downloads> netbeans-8.2-windows.exe --javahome "C:\Program Files\Java\jdk-9.0.1"
4. Now Run the NetBeans to install.
In Existing Installation
If you are facing the same issue in already installed NetBeans, in that case, you will need to find netbeans.conf file which might be located at
C:\Program Files (x86)\NetBeans 7.4\etc\netbeans.conf
And Find “netbeans_jdkhome=”C:\Program Files (x86)\Java\jdk1.7.0_55” this line as shown in below image:
Change the Location of JDK as desired or you can comment it out and It will automatically scan the system for the JDK.