Link Search Menu Expand Document

Prerequisites

In order to run MAL and the DSL:s you need

  1. jdk 11 or higher. If it does not work with your jdk please see read how to install jdk 11 below.

  2. Maven

How to install jdk 11 on macOS

Start with checking with version of java you’re using.

% java --version

If you already have Java 11 then you do not need to do anything. Else do the following

brew install java11

sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk

export JAVA_11_HOME=$(/usr/libexec/java_home -v11)\

alias java11='export JAVA_HOME=$JAVA_11_HOME'\

now you can change to jdk 11 with the command java11.

You need Homebrew installed to be able to use the command “brew”. Homebrew is a software package management system that can be used on macOS. If you do not already have Homebrew installed you can find the installation guide here.

How to install jdk 11 on Ubuntu

Ubuntu 18.04 should have jdk11 by default. Just as with macOS you check the version with the command

java --version

If you need to install jdk 11 for Ubuntu 18.04 do

sudo add-apt-repository ppa:linuxuprising/java

sudo apt update

sudo apt install oracle-java11-set-default

If you use Ubuntu 20.04

sudo apt update

sudo apt install openjdk-11-jdk

How to install jdk 11 on Windows

You can find instructions how to install jdk 11 on Windows here.

Maven

You can find link to Maven and how to install it here.


Division of Network and Systems Engineering | KTH