[macOS] NetBeans IDE cannot be installed. Java (JRE) found on your computer but JDK XX or newer is required.

NetBeans IDE cannot be installed.
Java (JRE) found on your computer but JDK 11 or newer is required. 
Please download and install the latest update of JDK 11 from 
and restart NetBeans installation.

If you are using a macOS (Catalina, Big Sur e.t.c) and trying to use install and run Netbeans IDE and get the above error, then there are few steps you can try to fix this issue,

  1. Open the netbeans.conf file in Text Editor,
  2. Look for netbeans_jdkhome,
  3. Change its value to your Home dir of jdk,
  4. netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.XX.X_XXX.jdk/Contents/Home"

  5. Restart your Mac device.

⚡️ You should fine the conf file under: /Applications/ NetBeans/ NetBeans XX.XX.app/ Contents/ Resources/ NetBeans/ etc/ netbeans.conf

Netbeans cannot be installed error - macOS
Netbeans cannot be installed error - macOS
❗️ If this does not work, you might have to reinstall Java, 
 I have often seen over the years that after upgrading macOS installed Java JDK being affected.
Try Out Code2care Dev Tools:


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.