Member-only story
Changing Default Java Version in Microsoft Windows

You may installed a Java already in your Microsoft Windows 10 or the software already came up with it, but what do you do you if your currently installed Java version is not what you are looking for?
Last time, I covered how to change the Java version in Mac OS X, so please check that out.
Changing the default Java version in Microsoft Windows 10 is relatively simpler compared to the process for Mac, because you can do everything through the installation wizard, but let’s decide that you need to override the current version. Here is the step-by-step approach.
STEP 1: First download the Java that you need to install. You can get it from Oracle’s website, but also the OpenJDK is a nice option.
STEP 2: In your Microsoft Windows, click “Window Button” on your keyboard or click Window Button on bottom left.

STEP 3: Type “env” in your keyboard. Unless you have the full privilege of your account, you can select “Edit environment variables for your account.”

STEP 4: Click “New” under “User variables”

STEP 5: You can call “Variable name” whatever you want to call it (e.g. in the example below, I gave it a name “JAVA_HOME”), but make sure to give the path to your downloaded Java in your computer.
