First of all, I know about the command line parameter, but I don't want to use it because I want to learn, not just get it done, so...
Where can I set the JRE/JDK which is used to run Netbeans?
A little background:
The JRE Installer is located on the Java SE Runtime Environment 9 Downloads page. In a browser, go to the Java SE Runtime Environment 9 Downloads page. The following JRE installers are available for you to download: Windows Offline: jre-9.
Bookmark this question. Show activity on this post. In Netbeans 8.2, it says to use Java JDK 8.1 or higher.
Try setting netbeans_jdkhome in {NetBeans directory}/etc/netbeans.conf.
# Default location of JDK, can be overridden by using --jdkhome : netbeans_jdkhome="..." # (omitted path, as I have Java in a non-standard location)
Based on the voted answer, here's what I did on my Mac and it worked...
(download JDK from Oracle)
$ vi /Applications/NetBeans/NetBeans\ 8.2.app/Contents/Resources/NetBeans/etc/netbeans.conf
[...]
#netbeans_jdkhome="/Applications/NetBeans/NetBeans 8.2.app/Contents/Resources/NetBeans/bin/jre"
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/"
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