Nov 1, 2018

How to change the Default JDK in NetBeans

Change the netbeans_jdkhome property in your netbeans config file which is  "your_netbeans_folder"/etc/netbeans.conf.

netbeans_jdkhome="/usr/lib/jvm/java-1.8.0-openjdk-amd64"

It can also be defined on the commandline by passing --jdkhome /path/to/jdk