Setting JRE in Netbeans

后端 未结 1 445
自闭症患者
自闭症患者 2021-01-02 06:13

I have JDK 1.6, JRE6 and JRE7 (64-bit & 32-bit) installed in my PC.

I am using Netbeans 7.3 BETA 2 and it is using JDK 6 and JRE 6.

I want to change it t

相关标签:
1条回答
  • 2021-01-02 07:10

    Goto Tools -> Platforms

    enter image description here

    Click "Add Platform", browse to the location where the JDK you want to add is installed....

    enter image description here

    Click on the JDK you want to add and select "Finish"

    Updating projects

    You can change the platform that projects use, by right clicking the project node and selecting properties and selecting Libraries. Here you change the platform that the project will use to build the classes with.

    enter image description here

    You can also change the source/binary format (version) which Netbeans is expecting to use. For example, you use JDK 7, but build/develop for Java 6

    enter image description here

    Changing the JDK that Netbeans itself uses to run

    Goto {install/location/of/Netbeans}/etc and open the netbeans.conf.

    There is a property called netbeans_jdkhome (it was towards the end of my file). You change this to what ever JDK you want Netbeans to be launched with

    0 讨论(0)
提交回复
热议问题