更改运行 netbeans 的 Java 平台 [英] Changing java platform on which netbeans runs
本文介绍了更改运行 netbeans 的 Java 平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是 Netbeans 6.7.在安装 Netbeans 之前,我首先安装了 Java 1.5.当我安装 Netbeans 时,它采用 Java 1.5 作为默认版本.然后我在我的机器上安装了 Java 1.6.我需要将我的 netbeans 的默认 JDK 更改为 1.6,不仅适用于特定项目,而且适用于整个 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.
推荐答案
您可以通过修改配置文件来更改 Netbeans 的 JDK:
You can change the JDK for Netbeans by modifying the config file:
- 打开位于 NetBeans 安装内
etc
文件夹下的netbeans.conf
文件. - 修改
netbeans_jdkhome
变量指向新的JDK路径,然后 - 重新启动您的 Netbeans.
- Open
netbeans.conf
file available underetc
folder inside the NetBeans installation. - Modify the
netbeans_jdkhome
variable to point to new JDK path, and then - Restart your Netbeans.
这篇关于更改运行 netbeans 的 Java 平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文