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?
go to cmd and enter the following command:
C:\Users{usernamehere}\Documents\Downloads\netbeans-{version}.exe –-javahome "C:\Program Files (x86)\Java\jdk{version}"
before it make sure you have properly set the environment variable. If it is not works than check compatibility of program or reinstall jdk appropriately and set environment again and do as above command.
This is still an issue when installing NetBeans 8.0. To install it, first confirm that JDK is installed correctly. On my machine, it was located in C:\Program Files\Java\jdk1.8.0_11
Then, I was able to install NetBeans 8.0 by restarting my computer in Safe Mode With Networking. When running the NetBeans exe installation file in Safe Mode With Networking, it will prompt you to confirm the location of the Java JDK directory.
I got this Error today while installing latest Java 10.0.1 ( downloaded JDK in official oracle website) and also downloaded NetBeans version 8.2.
My JDK installation went as smooth as Cake.
But the problem is in Netbeans installation. When I tried to install Netbeans, the error message showed was: "JDK was not installed on your system. Try using Javahome installer argument". But nothing helped me.
Solution:
From the commnand prompt execute the following two commands:
netbeans-6.5.1-windows.exe –extract
//two dashes before extract
java -jar bundle.jar
The first one extracts the installer from the exe while the other executes the installer.
according to this link:http://fuzz-box.blogspot.com/2011/05/netbeans-65-jdk-not-found.html
What I have found, the correct way of doing it is: "C:\Program Files (x86)\netbeans-8.0.2-windows.exe" --javahome "C:\Program Files(x86)\Java\jdk1.7.0_51"
Note: run this link in the command prompt
I use the following steps to solve the problem:
First, Make sure
“Run this program in compatibality mode for: Windows XP (Service Pack 3)” and “Run this program as an administrator” are ENABLED.
Run in Command Prompt
C:\Users\{yourusernamehere}\Documents\Downloads\netbeans-6.5-ml-windows.exe –-javahome "C:\Program Files (x86)\Java\jdk1.6.0_18"