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
Java SE Development Kit 9 is not compatible with the Netbeans IDE 8.2.
My Solution:
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.
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".
JDK-9
.yes
or ok
.Or you can remove JDK-9
from your pc and install JDK-8
.
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
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).
C:\Program Files\NetBeans 8.2\etc\netbeans.conf
# netbeans_jdkhome="C:\Program Files\Java\jdk-10.0.1"
netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_171"
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.