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 would first double-check that you installed the JDK, rather than just the JRE. It's easy to grab the wrong one and not even realize it. Then I'd make sure that your JAVA_HOME environment variable is pointing to your JDK install directory, NOT the bin directory. You may want to add the bin directory to the PATH environment variable, but Netbeans is more likely looking at the JAVA_HOME environment variable.