How to change the default JDK in NetBeans 8

For some time now I have been running NetBeans 8.0.2 on 64-bit Windows 7 with JDK 1.7.0_51. I recently installed JDK 1.7.0_79 and added it as a new framework to NetBeans. I would like this to be the default JDK as well, but the old way to accomplish this - changing the link netbeans_jdkhome

in C: \ Program Files \ NetBeans 8.0 \ etc \ netbeans.conf - no longer works. I searched high and low for another config file that contains a link to JDK 1.7.0_51 but couldn't find it.

+3


source to share


1 answer


The original update method C: \ Program Files \ NetBeans 8.0 \ etc \ netbeans.conf to reference the new JDK continues to work. What can happen if Windows doesn't seem to keep two separate copies of the file - the original version and the version modified to reference the new JDK, with NetBeans reading the original version. This can happen if you try to edit the netbeans.conf file if the editor you are using to update it is not running as an administrator. It's weird, confusing, and I dare say it's dangerous behavior on the part of Windows. It might even be a mistake.



+1


source







All Articles