Installing

To start developing with Vaadin, you need to install Java (JDK) and Maven.

The instructions are for Debian-based and RPM-based distributions. They should be similar on other Linux distributions.

Debian and Ubuntu

On Debian and Ubuntu, it is easiest to use OpenJDK, as it is available in the standard package repositories. Similarly, Maven is available from a repository.

  1. Install the development tools

    You can install all the needed development tools with:

    Show code

    Expand code

    1. sudo apt-get install -y openjdk-11-jdk maven

If your system does not have sudo installed, run the above commands as root.

Fedora and RHEL

On Fedora (since 18) and RHEL (since 8), you use the DNF package manager.

  1. Install the development tools:

    Show code

    Expand code

    1. sudo dnf -y install java-11-openjdk.x86_64 maven
  2. Ensure that you are running Java 11 by running:

    Show code

    Expand code

    1. java -version

    If you are not using 11, change it with:

    Show code

    Expand code

    1. sudo alternatives --config java

    Select OpenJDK 11.

RPM-based Systems Using YUM

  1. Install the development tools:

    Show code

    Expand code

    1. sudo yum install -y java-11-openjdk-devel.x86_64 maven
  2. Ensure that you are running Java 11 by running:

    Show code

    Expand code

    1. java -version

    If you are not using 11, change it with:

    Show code

    Expand code

    1. sudo alternatives --config java

OpenSuSE

On OpenSuSE, you use the zypper package manager as follows:

Show code

Expand code

  1. sudo zypper install java-11-openjdk maven

Depending on your system version, you may need to install package repositories or do some other steps.

Arch Linux

On Arch Linux, you use the pacman package manager as follows:

Show code

Expand code

  1. pacman -S jdk11-openjdk maven

Depending on your system version, you may need to install package repositories or do some other steps.

Installing Amazon Corretto

If you want to install Amazon Corretto rather than OpenJDK, you either have to add the package repository or install it from a DEB, RPM, or a tar package.

See:

Next Step

Now that you’ve installed development tools, you can start a new Vaadin application project.

Start a Project