I got the following message when I open the NetBeans. I have got the JDK installed, and set the bin directory in the environment. What I could do next to avoid this problem?
I was facing the same problem, not it works fine.
just open cmd
cd to the directory where your netbeans setup file is located.
in cmd, write the name of the entire setup file and write --javahome "address of jdk"
hit enter, it will surely solve your problem
for example, if the setup file is: netbeans8.02.exe
and path of JDK is C:/program files/java/jdk9.01
then run the command,
netbeans8.02.exe --javahome "C:/program files/java/jdk9.01"
and hit enter! :-)