To verify if Java is installed, open cmd and typeĪs per the Apache Maven, Apache Maven is a software project management and comprehension tool. Note – How to setup env variables in windows 10 Value = C:\Program Files\Java\jdk-X.X.X\bin Open Environmental setup and under the User variable section, add the JDK path into the PATH variable. JDK will be installed under path – C:\Program Files\Java\jdk-X.X.X Why JDK required? – in simple words, JDK required to write any java program & JRE is required to run the java program.Ĭlick on the JDK download link to download, and then install You will get the Java version as result output.įor Windows OS, we need to install JAVA JDK To make sure if Java installed or not, Open terminal and type In MacOS – you will get the Java preinstalled out of box, so no settings required. If you are using Selenium library for Java language binding to write automation tests, then we need to setup Java in windows or Mac OS