Uninstalled older version of Java using JavaUninstallTool.exe
Upgraded from Java 8 to Java 16 jdk-16.0.2_windows-x64_bin.exe
Installed Maven by downloading the binary zip archive apache-maven-3.8.1-bin.zip
C:\Program Files\Java\apache-maven-3.8.1
and sub-folder bin
has the mvn file. In windows, in the search bar, type-in environm you will get the Edit the System Environment Variables. Click it.
In system properties window, click Environment Variables button.
In System Variables section, add a new variable called
MAVEN_HOME
: C:\Program Files\Java\apache-maven-3.8.1
Path
with %MAVEN_HOME%\bin
Thats all folks