本文介绍了如何设置 JDK NetBeans 运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有旧的 NetBeans 6.7、NetBeans 6.9 和 NetBeans 7.0,它们曾经在 jdk1.6.0_21 和 jdk1.6.0_25 上运行.现在我已经删除了那些 JDK,只剩下 jdk1.6.0_26 和 jdk1.7.0,但我仍然想保留旧版本的 NetBeans,但是现在当我运行它们时,我收到以下消息:

I have the older NetBeans 6.7, NetBeans 6.9, and NetBeans 7.0, which used to run on jdk1.6.0_21 and jdk1.6.0_25. Now I've removed those JDKs and only have jdk1.6.0_26 and jdk1.7.0 left, but I still want to keep the older versions of NetBeans, but now when I run them, I get this message:

"在指定的jdkhome C:Program Files (x86)Javajdk1.6.0_25中找不到java安装
您想尝试使用默认版本吗?"

我试图找到它在哪里寻找jdk1.6.0_25",并更新了C:Program Files (x86)NetBeans 6.7"中的一些配置文件;和C:UsersUSER.nbiegistry.xml",但消息不断出现.我需要在何处更改以将其指向 C:Program Files (x86)Javajdk1.6.0_26?

I tried to find where it's looking for the "jdk1.6.0_25", and updated a few configuration files in "C:Program Files (x86)NetBeans 6.7" and "C:UsersUSER.nbiegistry.xml", and yet the message keeps coming. Where and what do I need to change to point it to C:Program Files (x86)Javajdk1.6.0_26?

推荐答案

感谢 Kasun Gajasinghe 的提示,我在建议"中找到了解决方案关联.更新以下文件(将 7.x 替换为您的 NetBeans 版本):

Thanks to Kasun Gajasinghe's tip, I found the solution in the "suggested" link. Update the following file (replace 7.x with your NetBeans version):

C:Program FilesNetBeans 7.xetc
etbeans.conf

更改以下行以将其指向您的 Java 安装位置:

Change the following line to point it where your Java installation is:

netbeans_jdkhome="C:Program FilesJavajdk1.7xxxxx"

您可能需要管理员权限才能编辑 netbeans.conf.

You may need administrator privileges to edit netbeans.conf.

这篇关于如何设置 JDK NetBeans 运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 13:01