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