NetBeans installer fails with "No Java Development Kit(JDK) was found on this system". Why?
The NetBeans installer needs a full JDK (Java Development Kit) installation to run.
If you get this error, you probably do not have the required JDK installed, or the installer launcher is not able to locate the JDK. NetBeans IDE is a development environment and therefor requires the full Java Development Kit (JDK) to run. Having only the Java Runtime Environment (JRE) is not sufficient.
Solution: You must install the full JDK before installing NetBeans, or install the JDK-NetBeans bundle available from java.sun.com.
In case you have the full JDK installed, but the installer fails to recognize it, try to run with the explicit javahome commandline argument:
- for NetBeans IDE 5.x netbeans.exe -is:javahome C:\jdk1.5.0
- for NetBeans IDE 6.x netbeans.exe --javahome C:\jdk1.5.0
On NetBeans 4.0 and 4.1, the corresponding error message was "Suitable JVM cannot be found". From that it was not clear if the problem is about the JRE or JDK, which was confusing. It was not possible to customize this message before, but recently we changed it to the current wording.
Applies to: NetBeans 5.0, NetBeans 6.x