问题描述
Netbeans 8.0.2 在启动 Netbeans 8.0.2时显示此错误启动时发生错误.我搜索了此错误,但对我没有任何帮助.
Netbeans 8.0.2 shows this error on startup Netbeans 8.0.2 error on startup. I searched for this error, but nothing works for me.
我修改了netbeans.conf
文件中的netbeans_jdkhome,但未进行任何修改.然后取消注释,什么都没有.该错误不断出现.好像还有另一个netbeans.conf文件,但是我不知道在哪里.我正在运行Windows 10,并且在"C:\ Program Files \ Java \ jdk1.8.0_101"中安装了JDK 1.8.
I modified the netbeans_jdkhome in netbeans.conf
file, but nothing. Then uncommented it, nothing. The error keeps showing up. It´s like there is another netbeans.conf file, but I don´t know where.I´m running Windows 10 and have JDK 1.8 installed in "C:\Program Files\Java\jdk1.8.0_101" .
推荐答案
转到C:\Program Files\NetBeans 8.0.2\etc
,打开文件netbeans.conf
,然后将netbeans_jdkhome
更改为JDK的路径,netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_101"
go to C:\Program Files\NetBeans 8.0.2\etc
, open the file netbeans.conf
then change netbeans_jdkhome
to the path of your JDK, netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_101"
如果不确定jdk
的版本,可以通过键入CMD java -version
if you are not sure about the version of jdk
, you can find it by typing in CMD java -version
这篇关于Netbeans IDE-指定的jdkhome无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!