NetBeans出现Cannot locate java installation in specified jdkhome: *错误的解决办法

最近重装了系统,安装了最新版本的JavaJDK,结果早期安装的NetBeans6.9.1不能用了,在更新jdk版本后,启动netbeans 出现 Cannot locate java installation in specified jdkhome: ***错误的解决办法,***是以前jdk的版本所在目录,解决的方法很简单:C:Program FilesNetBeans 6.9.1etcnetbeans.conf ,或者你自己的安装目录下的etcnetbeans.conf文件内,找到对应的配置信息,修改为新的jdk目录即可。


# ${HOME} will be replaced by JVM user.home system property


# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options=”-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=384m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true”
# Note that a default -Xmx is selected for you automatically.
# You can find this value in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx here
# or on the command line.

# If you specify the heap size (-Xmx) explicitly, you may also want to enable
# Concurrent Mark & Sweep garbage collector. In such case add the following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled
# (see

# Default location of JDK, can be overridden by using –jdkhome <dir>:
netbeans_jdkhome=”C:Program FilesJavajdk1.6.0_24″   //=====我指的位置就是这个地方,改成你JDK的位置就可以了=====

# Additional module clusters, using ${path.separator} (‘;’ on Windows or ‘:’ on Unix):

# If you have some problems with detect of proxy settings, you may want to enable
# detect the proxy settings provided by JDK5 or higher.
# In such case add to the netbeans_default_options.