Vipin | Sun, 23 Aug, 2020 | 99
Set JAVA_HOME Windows 10. Type "Environment Variables" in the search box (beside the Windows start button), clicks "Edit the system environment variables".
Clicks Environment Variables under Advance tab
In System variables, add a new JAVA_HOME variable and point it to the JDK installed folder.
In System variables, find PATH, clicks Edit... and append this %JAVA_HOME%\bin to the start. Then Click OK.
Open a command prompt
Type "java -version" and "javac -version"
Now you are all set for wrting your first program.....