Skip to main content

GET STARTED

Install Dependencies

Karate requires Java 17 or higher and a build tool (Maven or Gradle).

Step 1: Verify Java Installation

Run in your terminal or command prompt:

Terminal
java -version

You should see a version of 17 or higher. If not, install Java as described below.

Step 2: Install Java

Using Homebrew:

Terminal
# Install Java 17
brew install openjdk@17

# Add Java to your PATH (append to ~/.zshrc)
export PATH="/opt/homebrew/opt/openjdk@17/bin:$PATH"
export JAVA_HOME=$(/usr/libexec/java_home -v 17)

# Reload your shell
source ~/.zshrc

Manual download:

Verify installation:

Terminal
java -version

Step 3: Install a Build Tool

Maven

Using Homebrew:

Terminal
brew install maven

Manual download: Apache Maven

Verify installation:

Terminal
mvn -v

Gradle

Using Homebrew:

Terminal
brew install gradle

Manual download: Gradle

Verify installation:

Terminal
gradle -v

Next Steps

With Java and your build tool installed, proceed to the Quick Start guide to set up Karate in your project.