Install open JDK 18 and Maven in Windows 10.
Just download open JDK, latest version.
Unzip it and create a folder called Java in C:\Program Files, and move the extracted files in to ,C:\Program Files\Java
Then set system variables as below.
Below commands should work.
Then download maven, binaries apache-maven-3.8.6-bin.zip from https://maven.apache.org/download.cgi
Extract the file and create folder without spaces in C: drive. Example, C:\Maven and move the extracted files.
Go to system variables and add
After that in path variable , create new and add this .
Open a command line and type