The JDK is missing and is required to run some NetBeans modules

后端 未结 9 1524
渐次进展
渐次进展 2020-12-24 01:12

Complete error message: The JDK is missing and is required to run some NetBeans modules Please use the --jdkhome command line option to specify a JDK installation or see ht

9条回答
  •  误落风尘
    2020-12-24 01:44

    Find the file [netbeans installation directory]/etc/netbeans.conf

    Luckily, Linux has a find helper like find /home/ -name "netbeans.conf, in which you can change the /home/ to a location where you want to search.

    I found it at /usr/local/netbeans-8.1/etc/netbeans.conf

    Once, you found the file, the following property needs to be set:

    netbeans_jdkhome="[jdk_path]"
    

    where you can find the jdk_path using:

    update-alternatives --config java
    

    In my case, I found it at /opt/java/jdk1.8.0_191

提交回复
热议问题