Skip to main content

Install Java Environment

Download and Install OpenJDK

Amazon Corretto is recommended:

Or visit the AdoptOpenJDK website to choose another OpenJDK distribution.

Install OpenJDK via the package manager

macOS

It is recommended to use Homebrew to install OpenJDK. You need to install Homebrew first.

brew install openjdk

Linux

It is recommended to use the system's built-in package manager to install OpenJDK.

If using CentOS, Rocky Linux, RHEL or Fedora:

sudo yum install java

If using Ubuntu、Debian:

sudo apt install openjdk-8-jdk

Check whether the Java environment is installed successfully

Run java -version in the terminal. If the Java or OpenJDK version number can be displayed correctly, the installation is successful.

FAQ

If the Java environment has been installed successfully but Apidog does not detect the Java environment, please try the following methods:

  • Close Apidog and reopen it
  • Restart the computer