Skip to content

How to: install Java

Jeremy edited this page May 20, 2021 · 1 revision

Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. For this project, you need Java in order to use the serverless-dynamodb-local plugin, which is a local version of DynamoDB.

Prerequisites:

  1. macOS: This is the only platform this project supports
  2. Homebrew: a package manager for macOS

Steps:

  1. Install java (openjdk v11):

    brew install java11
    
  2. Add jdk to path:

    echo '; export PATH="/usr/local/opt/openjdk/bin:$PATH"' >> ~/.bash_profile
    
  3. Link java:

    brew link --force openjdk@11
    
  4. Re-init bash profile:

    source ~./.bash_profile
    
  5. Run java --version to verify install.

    • should print version and runtime info to terminal, eg:
      openjdk 11.0.10 2021-01-19
      OpenJDK Runtime Environment (build 11.0.10+9)
      OpenJDK 64-Bit Server VM (build 11.0.10+9, mixed mode)
      
Clone this wiki locally