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.
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.
You must have JDK 7 Update 10 (or newer) on your system to install and run NetBeans IDE 8.0. 2.
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.
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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With