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?
You just simply needs to add JAVA_HOME environment variable and provide the complete path of the latest JDK folder on your computer.
Re launch the installer and it would work.
I face the same problem while installing the NetBeans but I did the installation part properly simply you have do is 1-> GO and download the JRE file of java link -> https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
2-> After installing the JRE kindly go to directory where you have install the JRE 3-> And copy all the file of from the JRE folder 4-> And paste in the jdk folder but 5-> while copying the file make sure you replace-and-copy the file while any prompt pop out
6-> Then open the command prompt(cmd) and simply type 7->netbeans-8.2-windows.exe --javahome "path-of-your-jdk-file"
I have same problem, and solve by this way:
Write on cmd look like C:\Users\unnamed>"C:\Users\unnamed\Downloads\Programs\netbeans-8.2-windows.exe" --javahome "C:\Program Files\Java\jdk-9.0.4"
Enter. Enjoy it.
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! :-)
You have to either provide JAVA_HOME
environment variable which points to the JDK
location or as it says, you can run the installer from the command line passing JDK
address through its -javahome
argument like this:
C:> <NetBeans_Installer_Name> -javahome <JDK-PATH>
You must also make sure that your installed JDK is the Windows 64-bit version of the program. This is the download link for JDK6U37: http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-windows-x64.exe
write in the command prompt
C:>netbeans8.2-windows.exe -javahome"path of your jdk" -jrehome"path of your jre"
netbeans version may be different so type that name i.e. if you have netbeans 6.5
, then write netbeans6.5
instead of 8.2
.