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

后端 未结 9 1505
渐次进展
渐次进展 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:27
    1. Open netbeans.conf

    sudo nano "/usr/lib/jvm/java-8-oracle/netbeans.conf"

    1. Set proper sdk path:

    netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"

    1. Exit Ctrl + X and to save changes Ctrl + T
    0 讨论(0)
  • 2020-12-24 01:30

    I resolved this problem by changing default version of JRE and JDK that I'm using to 11.x.x with following commands:

    sudo update-alternatives --config java
    sudo update-alternatives --config javac
    
    0 讨论(0)
  • 2020-12-24 01:33

    This worked for me

    1. install full JDK
    2. either edit <netbeans-IDE-installation>/etc/netbeans.conf
        2.1 unmark netbeans_jdkhome
        2.2 link to JDK location e.g. /usr/local/share/java/jdk1.6.0_07/ 
    3. or use --jdkhome command-line option e.g. ./bin/netbeans --jdkhome /usr/local/share/java/jdk1.6.0_07/ 
    

    take care with the "/" at the end

    More info in http://wiki.netbeans.org/FaqRunningOnJre

    0 讨论(0)
  • 2020-12-24 01:34

    I have this problem to. But now i resolove this problem with edit one line.

    1. Find and open this file /etc/netbeans.conf
    2. If you see netbeans_jdkhome="C:\Program Files\Java\jre1.8.0_151" replace netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_131"
    3. Save as adminstrator

    Problem reseloved

    0 讨论(0)
  • 2020-12-24 01:43

    Ubuntu 16.04 LTS:

    1. Uninstall the netbeans you have.
    2. Delete .cache/netbeans folder
    3. Download http://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-142931.html
    4. Install your download
    0 讨论(0)
  • 2020-12-24 01:43

    In mid April 2019, Oracle has changed the JDK's licence. However, I was still able to solve this issue with NetBeans 11 and the JDK 12's open source build on my Windows machine. Just downloaded the open source JDK from https://jdk.java.net/ and extracted it. Then, in my NetBeans config file, I typed in the path to the extracted directory (NOT the "bin" folder!).

    0 讨论(0)
提交回复
热议问题