There are guides out there for installing Apache Netbeans. There are guides out there for installing OpenJDK.
There are NOT any guides out there that closes the loop, at least not to my knowledge. Now that Oracle has changed their licensing agreements, many companies accustomed to getting the JDK for free are turning to OpenJDK.
Let this help those trying to make the transition or just getting started.
https://netbeans.apache.org/download/
Always use the latest LTS version of the IDE; it is the least likely to have bugs. Long-term support (LTS) releases benefit from their NetCAT community testing process, and remains available and supported for a year. Other releases have access to new features but are not thoroughly tested.
For example: JDK 14.
Extract to C:\Program Files\Java.
Execute command in Admin Command Prompt.setx path "%path%;C:\Program Files\Java\jdk-14.0.2\bin"
Close and reopen Admin Command Prompt to reload Environment Variables.
Verify by executing command in Admin Command Prompt. Version displayed should match version you just extracted.java -version
Execute command in Admin Command Prompt.setx JAVA_HOME -m "C:\Program Files\Java\jdk-14.0.2"
Close and reopen Admin Command Prompt to reload Environment Variables.
Verify by executing command in Admin Command Prompt. Output should match path to JDK directory.echo %JAVA_HOME%
Download the appropiate installer .exe file from the mirror site they recommend.
You should not encounter any warnings.