How-to-set-java_home-on-windows-10
How to set a JAVA_HOME system variable on Windows 10.
Step 1: Advance System Settings
Go to Computer (my PC)->Right click->Properties->Advance system settings
Step 2: Environment Variables
Click on Advance system settings -> Environment variables
Step 3: Add JAVA_HOME
In System variables, clicks New button to add a new JAVA_HOME variable and point it to the JDK installed folder
Correct – C:\Program Files\Java\jdk1.8.0_191
Wrong – C:\Program Files\Java\jdk1.8.0_191\bin
Step 4: Update Path
In System variables, find path, clicks edit ->New
Puts the %JAVA_HOME%\bin in PATH
Step 5 : Test
- Open a command prompt by typing ‘cmd’ at start search
- type “java -version”
Tag:#JAVA, #java_home, #path