How to setup JDK in your machine?
Here are the steps to install JDK and set the JAVA_HOME environment variable in Windows, macOS, and Linux: Windows: Go to the official Java website (https://www.java.com/) and download the JDK installer for Windows. Run the installer and follow the prompts to install JDK on your computer. Open the Start menu, search for "Environment Variables" and select "Edit the system environment variables" Click on the "Environment Variables" button. Under "System Variables", scroll down and find the "JAVA_HOME" variable. Click "New" to create the variable if it doesn't already exist. Set the value of the JAVA_HOME variable to the directory where the JDK is installed. For example, " C:\Program Files\Java\jdk-14 " Click "OK" to save the changes. Go to the "Path" variable under "System Variables" and click "Edit". Click "New" and add the "bin" folder of JDK installati...