Friday, September 23, 2016

Changing the Java version Netbeans runs on

Changing the Java version Netbeans runs on


I had to install Oracle JDK in my Crunchbang when I faced this. Found no GUI way for this Googled it. A Stackoverflow page shows this. [http://stackoverflow.com/questions/6950960/how-to-set-the-jdk-netbeans-runs-on]
The file where this is defined is located in

/usr/local/netbeans-{version}/etc/netbeans.conf
There locate the line that starts with

netbeans_jdkhome=
And make it

netbeans_jdkhome="{where youve placed your java installation i.e. [/usr/lib/jvm/jdk1.8.0]}"


Go to link download