MacOS – Not able to install Netbeans IDE (PHP bundle) on OS X El Capitan

developmentjavamacos

I am trying to install Netbeans IDE (PHP bundle) on OS X El Capitan.

I am getting following error

NetBeans IDE cannot be installed. This software can be installed with
Java 7 update 10 or newer. Please download and install the latest
update of Java 7 from
http://www.oracle.com/technetwork/java/javase/downloads/index.html and
restart NetBeans installation.

Following is error screenshot

enter image description here

PHP and some other bundles (HTML, C/C++) don't need separate java as they include JRE as mentioned on Netbeans downloads page – https://netbeans.org/downloads/

HTML/JS, PHP and C/C++ NetBeans bundles include Java Runtime
Environment and do not require a separate Java installation.

am I missing out something here?

Best Answer

Make sure that you have downloaded and are using the correct installer. Like your note says, it evidently should not require a separate Java installation.

Otherwise, just install the JDK separately.