Netbeans error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Netbeans error

I've installed JDK 16 and Netbeans 12. The first one I used with Ant it's no problem. But when I opened it yesterday, I got messages that it cannot execute. I don't know what's the problem, I didn't change anything. Maybe anyone can help me or has the same problem. Thanks

19th Apr 2021, 12:16 PM
Felix Atmaja
Felix Atmaja - avatar
7 Answers
0
try using IntelliJ IDEA by Jetbrains. Perfect for JAVA. Here's a link // https://www.jetbrains.com/idea/
3rd May 2021, 11:48 AM
Sonal Naidu
Sonal Naidu - avatar
0
Did you fix it? I was using NetBeans 12.3 with JDK 11 and tried to switch to OpenJDK 11. Now I can't open, run or debug projects. I've just reinstalled the IDE with JDK11 again but still broken. I get an error message named "unexpected error"
6th May 2021, 8:31 PM
ogoxu
ogoxu - avatar
0
ogoxu Sorry I can't fix it with JDK 11. Now I use NetBeans 12.2 and JDK 8. There is no problem with jdk 8
24th May 2021, 2:04 AM
Felix Atmaja
Felix Atmaja - avatar
0
Sonal Naidu Uhm, my lecturer asked to us to use NetBeans. Anyway, thank for your suggestion
24th May 2021, 2:06 AM
Felix Atmaja
Felix Atmaja - avatar
0
ogoxu yes, i uninstalled the netbeans and jdk and downloaded jdk 8, i hope there is no big difference from JDK 16
4th Aug 2021, 1:28 PM
Felix Atmaja
Felix Atmaja - avatar
0
An "easier" way to fix this problem is to set your project view to File - then go to the file build-impl. xml right click it and select clean. Then shut down the compiler - restart it and clean and build the application. It sorted the problem out on my compiler.
11th Jan 2023, 6:59 AM
Mike Clark
Mike Clark - avatar
0
To fix the error, you need to uninstall JAVA 14 and install Java 13 and rerun NetBeans installer. Now, you would be thinking, why we need to do this. Well, it’s very simple. This error occurred because the following is mentioned on the NetBeans official website’s download page: “The installers will NOT run under JDK 14 because usage is made of the Pack200 Tools and API, for packing and unpacking, which is removed in JDK 14, see JEP 367.” NetBeans doesnt support JAVA JDK 14 This means the problem was the JAVA JDK version. JAVA 14 removed the Pack200 Tools, which the current NetBeans installation is using. Therefore, uninstall JAVA 14 and install JAVA 13. After that, begin NetBeans installation again and it will work correctly. This is how to fix NetBeans installation error. Regards, Rachel Gomez
17th Mar 2023, 6:15 AM
rachel gomez
rachel gomez - avatar