Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change JRE in a NetBeans project

I have a NetBeans project which is using the JRE 1.4 environment which means I can't use generics.

How can I change the project to use 1.6(?), so I can use generics?

like image 256
griegs Avatar asked Nov 08 '10 21:11

griegs


People also ask

How do I change the default JDK in NetBeans 12?

The Apache NetBeans IDE will run under the specified JDK. So to change JDK for NetBeans, to update the netbeans_jdkhome property in the netbeans. conf file which can be found under installation directory > netbeans > etc directory.

How change JDK location in NetBeans?

Go to Tools* → Java Platforms. There, click on Add Platform and point it to C:\Program Files (x86)\Java\jdk1. 6.0_25 . You can either set the another JDK version or remove existing versions.

Does NetBeans need JRE?

The PHP and C/C++ NetBeans bundles only require the Java Runtime Environment (JRE) 7 or 8 to be installed and run.


1 Answers

  • In the Project tab, right-click on the project and select Properties. In the Library category select Java Platform JDK 1.6.
  • Then, in the Source category select Source/Binary Format JDK6.
  • This assumes that you installed JDK 1.6 and NetBeans knows about this.
  • JDK 1.6 must be known to NetBeans as a Java Platform.
  • From the menu select menu ToolsJava Platform Manager.
  • If JDK 1.6 is not in the list, you can add it there.
like image 89
OliCoder Avatar answered Oct 10 '22 23:10

OliCoder