1.Configure NetBeans 7.0.1 to use a locally installed instance of JDK 7.
Ans.1. configure NetBeans to be aware of the Java 7 platform.
a. in the NetBeans IDE , select Tools, and then Java Platforms from the Main menu.
b. click the Add platform button and specify the directory that contains your JDK 7 installation.
c. in the platform Name step, verify that the default locations of the platform sources zip file and API documantation are valid.
d. click the finish button to close the Add java platform dialog box.
e. ensure that JDK 1.7 is selected in the platform list and click close
2. Configure NetBeans to start with Java SE 7 JDK
a. Open the directory containing the NetBeans configuration files, typically:
b. use a text editor to edit the netbeans. conf file
c. Modify the netbeans _jdkhome property to have a value of the JDK 7 installation location, for example:
netbeans_jdkhome="c:\program files\java\jdk1.7.0".
3. Restart NetBeans and verify the JDK being used by NetBeans with the steps outlined.
No comments:
Post a Comment