如何设置JDK Netbeans运行? [英] How to set the JDK Netbeans runs on?

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

问题描述

我有较旧的NB6.7,NB6.9,NB7.0,曾经在jdk1.6.0_21和jdk1.6.0_25上运行。现在我已经删除了那些JDK,只留下了jdk1.6.0_26和jdk1.7.0,但是我仍然希望保留较旧的NB,但现在当我运行它们时,我收到了这条消息:

I have older NB6.7, NB6.9, NB7.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 NBs, but now when I run them, I get this message:


无法在指定的jdkhome中找到java安装C:\Program Files
(x86)\ Java \ _ddk1.6.0_25
你们想尝试使用默认版本?

"Cannot locate java installation in specified jdkhome C:\Program Files (x86)\Java\jdk1.6.0_25 Do you want to try to use default version ?"

我试图找到它在寻找jdk1.6.0_25的位置,并更新C:\Program Files(x86)\ NetBeans 6.7和C:\ Users \ USA.nbi \ registry.xml中的一些配置文件,然而消息不断出现,我的问题是,在哪里以及我需要更改以指向它: C:\Program Files(x86)\ Java \ _ddk1.6.0_26

I tried to find where it's looking for the "jdk1.6.0_25", and updated a few config files in "C:\Program Files (x86)\NetBeans 6.7" and "C:\Users\USER.nbi\registry.xml", and yet the message keeps coming, my question is, where and what do I need to change to point it to: C:\Program Files (x86)\Java\jdk1.6.0_26?

推荐答案

感谢KasunBG的提示,我在建议链接中找到了解决方案,更新了以下文件(替换 7.x 使用您的Netbeans版本):

Thanks to KasunBG's tip, I found the solution in the "suggested" link, update the following file (replace 7.x with your Netbeans version) :

C:\Program Files\NetBeans 7.x\etc\\\
etbeans.conf

更改以下行以指向您安装java的位置:

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

netbeans_jdkhome="C:\Program Files\Java\jdk1.7xxxxx"

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

You may need Administrator privileges to edit netbeans.conf

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆