Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue installing Netbeans in Windows 10: Java SE Development Kit (JDK) was not found on this computer [duplicate]

I'm trying to install the TMC Netbeans version on Windows 10. I'm getting this error:

Java SE Development Kit (JDK) was not found on this computer

JDK 7 is required for installing Netbeans with TMC 1.1.8. Make sure that the JDK is properly installed and run installer again. You can specify valid JDK location using --javahome installer argument.

I got the same error using the regular version of Netbeans. I know it is installed correctly because I got IntelliJ to work just fine. How do I fix this issue? I've been searching for answers, but I haven't found anything for Windows 10?

Also, I have JDK 9 installed.

like image 789
someplaceinthemall Avatar asked Sep 30 '17 19:09

someplaceinthemall


People also ask

Why does NetBeans not recognize JDK?

This is only due to javahome path missing. The problem solved. Show activity on this post. If you are certain that you have a JDK installed (and not a JRE), you can specify the location of the JDK on the commandline when starting the installer (as mentioned in the error message you get).

Which version of JDK is required for NetBeans 10?

You must have JDK 7 Update 10 (or newer) on your system to install and run NetBeans IDE 8.0. 2.

How do I install Java SE Development Kit on Windows 10?

In a browser, go to the Java SE Development Kit 10 Downloads page and click Accept License Agreement. Under the Download menu, click the Download link that corresponds to the .exe for your version of Windows. Download the file jdk-10. interim.

Why NetBeans is not opening in Windows 10?

Try restarting NetBeans once you have saved your change to netbeans. conf. If that doesn't work then locate the NetBeans log file, and update your question with the changes logged to it when you attempt to start NetBeans.


3 Answers

Took me some time to overcome this. This is what I did: 1.During installation of JDK change the path from jdk-9.x.x to jdk 2.open netbeans installer location in command prompt and type: netbeans.exe --javahome "C:\Program Files\Java\jdk"

like image 111
skandhan Avatar answered Oct 29 '22 12:10

skandhan


Download and install jdk-8u181.exe for Netbeans 8.2 to install properly. Its a requirement under the Netbeans 8.2 installation instructions

Netbeans with JDK

https://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-3413139-esa.html

like image 32
Benson Githinji Avatar answered Oct 29 '22 13:10

Benson Githinji


Open cmd > Change directory to wherever your netbeans executable installer is present > type {name of the netbeans executable installer}.exe --javahome"C:\Program Files\Java\{name of the jdk folder}

This worked for me.

like image 28
Anuj Sain Avatar answered Oct 29 '22 12:10

Anuj Sain