The following has been vetted for AdoptOpenJDK's OpenJDK 11 (LTS) and Apache NetBeans version 12 (LTS).
This guide takes you through the process of installing OpenJDK and Apache NetBeans for Java development on Windows 10. To install OpenJDK, we will be using resources created by the AdoptOpenJDK project. AdoptOpenJDK greatly simplifies the process of installing OpenJDK for the typical user.
Be sure to install things in the order listed.
If you wish, you can verify that the installation was successful by doing the following:
java -version. You should see something along the lines of:
javac -version(note the 'c' at the end of the command). You should see something along the lines of:
If you know how to check the system PATH and environment variables, you can additionally do the following:
If you want a functioning terminal in NetBeans (and you almost certainly do), you will need to install a basic Cygwin environment. Download
setup-x86_64.exe from https://cygwin.com/install.html, start the installer and walk through the wizard as follows:
The first time you create a Java project, you will probably be prompted to add nb-javac Java editing support library and JavaFX Implementation for Windows. Enable both checkmarks and click Download and Activate …, accept the licenses and install.
cmdin the search bar, and select the Commandline Prompt app.