Skip to content

Home

Development

IDEs

API Explorer

Releases

Release notes

Martini Runtime

Martini Desktop

Martini Online

Feature requests

Bug reports

Installing Java SE Development Kit 8

The Java SE Development Kit (JDK) is a development environment for building applications, and components using the Java programming language. In order to run Martini, you need the Java SE Development Kit 8 installed on your machine.

Below are the various implementations of the Java SE Platform Edition. Vendors have their own version of the JDK. Some of these version are free and open source, but some are proprietary.

For this installation, we will be using the OpenJDK (specifically AdoptOpenJDK) build of the JDK, but you are free to use the other builds (e.g., Oracle JDK). OpenJDK is a free and open-source implementation of the Java SE Platform Edition.1 Meanwhile, AdoptOpenJDK is a free, community-led initiative that provides pre-built binaries of the OpenJDK.

Required JDK 8 version

The JDK comes in 32 and 64-bit versions. Martini requires the 64-bit version.

  1. Go to the AdoptOpenJDK downloads page.
  2. Ensure Version 8 and HotSpot are selected.
  3. Click Install JDK.
  4. Launch the installation wizard by double-clicking the OpenJDK8U*.pkg file which has just been downloaded.
  5. Follow the installation procedures in the wizard.

To install the JDK using Homebrew, run:

1
2
brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk8

To install the JDK using MacPorts, run:

1
sudo port install openjdk8

To install the JDK using SDKMAN!, run:

1
sdk install java 1.8.0-adpt

  1. Go to the 64-bit download page of AdoptOpenJDK.
  2. Ensure Version 8 and HotSpot are selected.
  3. Click Install JDK.
  4. Launch the installation wizard by double-clicking on the OpenJDK8U*.msi file which has just been downloaded.
  5. Follow the installation procedures in the wizard.

To install the JDK using SDKMAN!, run:

1
sdk install java 1.8.0-adpt

To install the JDK using Chocolatey, run:

1
choco install adoptopenjdk8

  1. Import the official AdoptOpenJDK GPG key2.

    1
    wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
    
  2. Import the AdoptOpenJDK DEB repository using add-apt-repository.

    1
    sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
    
  3. Install OpenJDK.

    1
    2
    3
    4
    5
    # Update apt (if you haven't already).
    apt-get update
    
    # Install the OpenJDK.
    apt-get install adoptopenjdk-8-hotspot
    
  1. Add the RPM repo to /etc/yum.repos.d/adoptopenjdk.repo. Make sure to change the version if you are not using CentOS 7 (RPM's are also available for Rhel and Fedora). Go to the AdoptOpenJDK RPM page to check all the supported versions2.

    1
    2
    3
    4
    5
    6
    7
    8
    cat <<EOF > /etc/yum.repos.d/adoptopenjdk.repo
    [AdoptOpenJDK] \
    name=AdoptOpenJDK \
    baseurl=http://adoptopenjdk.jfrog.io/adoptopenjdk/rpm/centos/7/$(uname -m) \
    enabled=1 \
    gpgcheck=1 \
    gpgkey=https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public \
    EOF
    
  2. Install the OpenJDK.

    1
    2
    3
    4
    5
    # Update yum (if you haven't already).
    yum update
    
    # Install the OpenJDK.
    yum install adoptopenjdk-8-hotspot
    
  1. Import the RPM repo. Make sure to change the version if you are not using openSUSE 15.0 (RPM's are also available for SUSE Linux Enterprise Server (SLES) 12 and 15). Go to the AdoptOpenJDK RPM page to check all the supported versions2.

    1
    zypper ar -f http://adoptopenjdk.jfrog.io/adoptopenjdk/rpm/opensuse/15.0/$(uname -m) adoptopenjdk
    
  2. Install OpenJDK.

    1
    zypper install adoptopenjdk-8-hotspot
    

To install the JDK using SDKMAN!, run:

1
sdk install java 1.8.0-adpt


After installation, you can run the following command in order to check whether the JDK has been successfully installed on your machine:

1
java -version

This will print the current version of Java installed on your machine, which should look similar to the following:

1
2
3
4
>java -version
openjdk version "1.8.0_XXX"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_XXX-XXX)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build XX.XXX-XXX, mixed mode)

  1. Wikipedia contributors. (2019, August 14). OpenJDK. In Wikipedia, The Free Encyclopedia. Retrieved September 6, 2019, from https://en.wikipedia.org/wiki/OpenJDK 

  2. G. Adams. (2019, May 20). AdoptOpenJDK — RPM and DEB files. Retrieved September 9, 2019, from https://medium.com/adoptopenjdk/adoptopenjdk-rpm-and-deb-files-7003ba38144e