Can't create project on Netbeans 8.2

后端 未结 11 769
终归单人心
终归单人心 2020-12-04 08:24

I have windows 10 OS, I just downloaded JDK 9, and Netbeans 8.2 version with All features. When I want to create (Java) project, it just can\'t do it. Doesn\'t give me an er

相关标签:
11条回答
  • 2020-12-04 08:28

    Java SE Development Kit 9 is not compatible with the Netbeans IDE 8.2.

    My Solution:

    1. Delete the current JDK 9
    2. Install this previous trust version of JDK: JDK 8
    3. Modify the following file: \Program Files\NetBeans 8.2\etc\netbeans.conf to the given folder path of the newly installed JDK 8: netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_151" (example)
    0 讨论(0)
  • 2020-12-04 08:32

    Yes it s working: remove the path of jdk 9.0 and uninstall this from Cantroll panel instead install jdk 8version and set it's path, it is working easily with netbean 8.2.

    0 讨论(0)
  • 2020-12-04 08:32

    I tried setting netbeans_jdkhome="/path/to/jdk-9.0.4" in netbeans.config of "C:\Program Files\NetBeans8.2\etc" in Windows 10. It shows a notification "Unexpected Exception".

    0 讨论(0)
  • 2020-12-04 08:33
    1. You can solve your problem by deleting folder JDK-9.
    2. Restart Netbeans.
    3. It will give you a message if you want to use the default version of JDK.
    4. Press yes or ok.

    Or you can remove JDK-9 from your pc and install JDK-8.

    0 讨论(0)
  • 2020-12-04 08:43

    As the other people said, NetBeans is always going to use the latest version of JDK installed (currently JDK9) which is not working with NetBeans 8.2 and is causing problems as you guys mentioned.

    You can solve this problem by forcing NetBeans to use JDK8 instead of deleting JDK9!
    You just have to edit netbeans.conf file:
    MacOS /Applications/NetBeans/NetBeans8.2.app/Contents/Resources/NetBeans/etc
    Windows C:\Program Files\NetBeans 8.2\etc\

    Open netbeans.conf with your favourite editor and find this line: netbeans_jdkhome="/path/to/jdk" Remove # sign in front of it and modify it by typing your desired JDK version (JDK8) home location.

    Im not sure why is JDK9 not working with NetBeans8.2, but if I found out I will write it here...


    Default JDK locations:

    Mac OS ↴

    /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home

    Windows ↴

    C:\Program Files\Java\jdk1.8.0_152

    I've used jdk1.8.0_152 as example

    0 讨论(0)
  • 2020-12-04 08:44

    Faced same issue with jdk 10. While installing netbeans prompted for jdk default location was taken as jdk 10. This was the issue, it should be jdk8 (1.8).

    1. Close Netbeans
    2. Open below file
      C:\Program Files\NetBeans 8.2\etc\netbeans.conf
    3. Comment jdkhome line jdk9 or jdk10 with # sign:
      # netbeans_jdkhome="C:\Program Files\Java\jdk-10.0.1"
    4. Add new jdkhome line for jdk8:
      netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_171"
    5. Start Netbeans

    Note: If the above .conf file is not editable, then use Administrator mode. I use Notepad++, it prompted for restarting Notepad++ in Administrator mode, then save worked fine.

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