Not able to install Netbeans IDE (PHP bundle) on OS X El Capitan
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.