Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing java platform on which netbeans runs

Tags:

java

netbeans

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.

like image 633
rgksugan Avatar asked May 11 '10 09:05

rgksugan


People also ask

How do I change the default Java platform in NetBeans?

To do so, in NetBeans, go to Tools menu and select Java platforms. In the opening dialog do click on the Add Platform… button. In the opening window navigate to the folder where the JDK you want to add is installed, select it and click on the Next button.

How do I select Java version in NetBeans?

Enabling JDK 8 Support in NetBeans IDE In the IDE, choose Tools > Java Platforms from the main menu. Click Add Platform in the Java Platform Manager dialog. In the Add Java Platform dialog, select Java Standard Edition and click Next. Specify the directory that contains the JDK and click Next.


1 Answers

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

  1. Open netbeans.conf file available under etc folder inside the NetBeans installation.
  2. Modify the netbeans_jdkhome variable to point to new JDK path, and then
  3. Restart your Netbeans.
like image 80
Abdel Raoof Olakara Avatar answered Oct 08 '22 04:10

Abdel Raoof Olakara