Netbeans jdkhome 配置

Netbeans 默认使用JDK是在安装时指定的,如果因为卸载或者更换JDK发生了路径变化,NetBeans在启动的时候会弹出一个对话框提示说指定路径错误,这时就需要去Netbeans安装目录下找到etc文件夹,里面有个netbeans.conf文件。

打开这个文件找到:


# Default location of JDK:
# (set by installer or commented out if launcher should decide)
#
# It can be overridden on command line by using --jdkhome <dir>
# Be careful when changing jdkhome.
# There are two NetBeans launchers for Windows (32-bit and 64-bit) and
# installer points to one of those in the NetBeans application shortcut
# based on the Java version selected at installation time.
#

netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_71"

修改为

netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_74"



你可能感兴趣的:(Netbeans,jdkhome)