I'd like to install C/C++ plugin in Netbeans 12.4 with JDK 16 in Windows 10.
I have an error during the install C/C++ plugin.
Windows: 10
Netbeans: 12.4
JDK: 16.0.1
I attached photos:
I'd like to install C/C++ plugin in Netbeans 12.4 with JDK 16 in Windows 10.
I have an error during the install C/C++ plugin.
Windows: 10
Netbeans: 12.4
JDK: 16.0.1
I attached photos:
You are getting this problem because NetBeans is using JDK 16 to download a plugin, where that download process relies on the unpack200 tool which was deprecated in JDK 11, and removed in JDK 14.
Since NetBeans 12.4 supports three JDK releases (8, 11 and 16), the solution is to:
See How to set the JDK Netbeans runs on? for details on switching to JDK 8 or 11, and then reverting back to JDK 16.
Once NetBeans has been configured to use JDK 8 or 11 (I chose 8):
Restart NetBeans, and select Tools > Plugins > Settings > Add to add http://updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz
as an update center URL for plugins.
Click the Available Plugins tab, check C/C++, and then click the Install button to install the plugin:
Once the plugin has been installed, select File > New Project..., then select C/C++ from the Categories list to verify that the plugin installation worked:
If all nine C/C++ project types are listed (as shown above) then configure NetBeans to run under JDK 16 and restart NetBeans, .
Finally, select File > New Project... > C/C++ > C/C++ Application to verify that you can create a trivial C++ application and run it under JDK 16:
Notes:
At the moment, NetBeans doesn't support C/C++, the plugins you were/are using from 8.2 are not really officially supported, though work on this is ongoing here, with an end goal to having it officially part of NetBeans, though that will take a while
I was able to easily fix this by just going to Oracle's website and downloading the last version of the Java JDK to include unpack200.exe and then pointing the installer to the correct file - without installing the JDK.
You'll want version 13.0.2 (build 13.0.2+8) - openjdk-13.0.2_windows-x64_bin.zip - which can be found at https://jdk.java.net/archive/
Once the contents of the zip file you downloaded have been extracted, you can continue the install by clicking on the "Choose unpack200.." button located in the bottom left of the warning dialog box you posted. That will pop up a window allowing you to navigate to the extracted \openjdk-13.0.2_windows-x64_bin\jdk-13.0.2\bin directory so you can select the unpack200.exe file and complete the install.