Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java not found error when loading Apache Netbeans 9.0 or 10

Tags:

java

netbeans

I downloaded the archive for the program, unzipped it to C drive on Windows, then when I try to run either executable (32bit/64bit) in the bin folder I get the error message:

Cannot find JAVA 1.8 or higher.

in spite of Java 10 (JRE) being already installed. I also tried Installing Java 9 but was stuck with the same message.

I appreciate your help with this, Thanks.

like image 802
Learnerer Avatar asked May 29 '18 07:05

Learnerer


People also ask

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.

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.

Why my Java program is not running in NetBeans?

select project and left click on it.it open menu. in menu there is run option will there. but before running project just make sure that your class has been set as main class. f6 is short cut to run project in netbeans.

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).


1 Answers

Locate your Netbeans installation and in it the etc/netbeans.conf file. Open it with any text editor, and locate the line containing netbeans_jdkhome. If it is commented out (line starts with #), then remove the # to enable the setting. Then, set the value to the path to your JDK. This might be somethiing like C:\Program Files\Java\jdk-10.0.1.

Try to run the program again, it should work now. At least, it did for me.


Also, ensure that you installed the Java Development Kit (JDK), not only the Java Runtime Environment (JRE). Netbeans needs the former to be installed in order to function.

like image 155
Just a student Avatar answered Sep 28 '22 02:09

Just a student