0% found this document useful (0 votes)
54 views

and Install Java

The document provides steps to download, install, and configure Java, Maven, Git, IntelliJ IDEA, and the Cucumber for Java plugin on a system. It includes downloading and extracting files, configuring environment variables, and setting paths and versions in IntelliJ IDEA.

Uploaded by

MihaiDurnea
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

and Install Java

The document provides steps to download, install, and configure Java, Maven, Git, IntelliJ IDEA, and the Cucumber for Java plugin on a system. It includes downloading and extracting files, configuring environment variables, and setting paths and versions in IntelliJ IDEA.

Uploaded by

MihaiDurnea
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Java

Download and install Java:


- Download JDK8 from https://adoptopenjdk.net/
- Install in a chosen directory (example: C:\Tools\JDK8)

Configure Java environment variable


- Launch Start
- Input: sysdm.cpl
- Open/Enter
- Navigate to: Advanced -> Environment Variables
- Find: User Variables -> New button
- Input Variable Name: JAVA_HOME
- Input Variable Value: <JDK8_install_directory> (for example: C:\Tools\JDK8)
- Find variable Path
- Edit
- Add a new value in variable Path: %JAVA_HOME%\bin
- Open Command Prompt (CMD)
- Enter command: java -version
- Expected result: openjdk version "1.8.0_242" (version may differ)

Maven
Download and install Maven
- Download Maven from: https://maven.apache.org/download.cgi
- Choose and download "Binary zip archive"
- Extract zip contents into a chosen directory (ex: C:\Tools\Maven)

Configure Maven environment variable


- Launch Start
- Input: sysdm.cpl
- Open/Enter
- Navigate to: Advanced -> Environment Variables
- Find: User Variables -> New button
- Input Variable Name: M2_HOME
- Input Variable Value: <Maven_install_directory> (for example: C:\Tools\Maven)
- Find variable Path
- Edit
- Add a new value in variable Path: %M2_HOME%\bin
- Restart Command Prompt (CMD)
- Enter command: mvn -version
- Expected result: Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
(version may differ)
Git
Download and Install Git
- Download Git from: https://git-scm.com/downloads
- Install Git
- Open Git Bash
- Enter command: git –version
- Expected result: git version 2.25.1.windows.1 (version may differ)

Configure Git to be available in CMD (optional)


- Launch Start
- Input: sysdm.cpl
- Open/Enter
- Navigate to: Advanced -> Environment Variables
- Find variable Path
- Edit
- Add a new value in variable Path: <your_git_install_dir>\bin
(ex: C:\Program Files\Git\bin)
- Restart Command Prompt (CMD)
- Enter command: git --version
- Expected result: git version 2.25.1.windows.1 (version may differ)
IntelliJ IDEA
Download and install IDEA
- Download IDEA Community from: https://www.jetbrains.com/idea/download/
- Install into desired directory (ex: C:\Program Files\JetBrains)
- Open IntelliJ IDEA

Configure Git for IDEA


- Navigate to: Configure -> Settings
(or File -> Settings if you have a project opened)
- Navigate to: Version Control -> Git
- Path to Git executable should be set as <your_git_install_dir>\bin\git.exe
(ex: C:\Program Files\Git\bin\git.exe)
- Press Test
- Correct git version should be displayed

Configure JDK for new IDEA projects


- Navigate to: Configure -> Structure for New Projects
(or File -> New Projects Settings -> Structure for New Projects)
- Navigate to: JDKs
- Press +
- Add JDK
- Input <JDK_path> (ex: C:\Tools\JDK8)
- Navigate to: Project
- Set Project SDK to JDK that you added

Configure Maven for new IDEA projects


- Navigate to: Configure -> Settings
(or File -> New Projects Settings -> Settings for New Projects)
- Navigate to: Build, Execution, Deployment -> Build Tools -> Maven
- Set maven home directory to <M2_path> (ex: C:/Tools/Maven/apache-maven-3.6.3)

Ensure that Cucumber for Java plugin is installed


- Navigate to: File -> Settings -> Plugins
- Check that Cucumber for Java plugin is installed

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy