Q:

Changing java platform on which netbeans runs

I am using Netbeans 6.7. I had first installed Java 1.5 before installing Netbeans. When i installed Netbeans it took Java 1.5 as the default version. Then i installed Java 1.6 on my machine. I need to change the default JDK of my netbeans to 1.6 not only to a specific project but to the whole Netbeans application.

A:

You can change the JDK for Netbeans by modifying the config file:

Open netbeans.conf file available under etc folder inside the NetBeans installation. 
Modify the netbeans_jdkhome variable to point to new JDK path, and then 
Restart your Netbeans.

A:

In my Windows 7 box I found netbeans.conf in <Drive>:\<Program Files folder>\<NetBeans installation folder>\etc .  Thanks all.

A:

For anyone on Mac OS X, you can find netbeans.conf here:
/Applications/NetBeans/NetBeans <version>.app/Contents/Resources/NetBeans/etc/netbeans.conf

In case anyone needs to know :)

