NetBeans invalid jdkhome specified 问题解决方法

JDK的路径变化会导致 NetBeans 启动时出现错误:

NetBeans-error

解决办法:

There’s is an easy way to fix this. Navigate to your NetBeans installation folder which by default should be C:Program FilesNetBeans and look for the folder etc. Inside that folder should be a file with the name netbeans.conf. What you need to do is to open the file with your favorite text reader (notepad as an example) and look for the line that starts with netbeans_jdkhome=.

You simply need to modify the line in order to point Netbeans to the the location of the java jdk version you are currently have installed. It should look something like this netbeans_jdkhome=”C:Program FilesJavajdk1.7.0_05″. If you are unsure what version you have installed navigate to your java’s installation folder (the default path is C:Program FilesJava) and look for folder there.

原文地址:https://www.cnblogs.com/gugia/p/5323174.html