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.

C:\Program Files\Java\jdk-18.0.2\bin

C:\Program Files\Java\jdk-18.0.2

C:\Program Files\Java\jdk-18.0.2\bin

Below commands should work.

java -version

javac -version


Then download maven, binaries from
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
mvn -version


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store