Installing software #
In order to install, update and remove programming-related software (compilers, interpreters, execution environment, libraries, build automation tools, git, maven, etc.), we highly recommend using a package manager. This is valid regardless of the programming languages that you use (Java, Javascript, Python, C/C++, etc.).
Linux distributions already come with a package manager. So you can safely skip the next section if you use Linux.
Installing a package manager (Windows and macOS only) #
Windows #
To install Chocolatey:
- open the Window PowerShell in admin mode (right click on the program’s name and select “Run as administrator”),
- copy-paste the command provided on this page (the one that starts with “Set-ExecutionPolicy…”) and press Enter.
macOS #
To install Homebrew, execute
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
and follow (carefully) the instructions.
To check whether the installation was successful, type
brew --version
Installing software with a package manager #
Windows #
With Chocolatey, to search for a program, type its name in the search bar on this page. Next to each result, you will find the command to install the corresponding package.
For this course, you will need git, Maven and Gradle. The respective commands are:
- install git:
choco install git
- install Maven:
choco install maven
- install Gradle:
choco install gradle
We assume that you already have a Java JDK installed. If not, then you can use:
choco install openjdk
macOS #
With Homebrew, to search for a program, type its name in the search bar on this page. If you find the program, then the resulting web page will provide the command to install the corresponding package.
For this course, you will need git, Maven and Gradle. The respective commands are:
- install git:
brew install git
- install Maven:
brew install maven
- install Gradle:
brew install gradle
We assume that you already have a Java JDK installed. If not, then you can use:
brew install openjdk@21
Linux #
If you use Linux, you probably know how to use a package manager.
For this course, you will need to install git, Maven and Gradle.
For instance, on Debian-based distributions (like Ubuntu, Mint, etc.), your package manager is apt
, and the respective commands are:
- install git:
sudo apt install git
- install Maven:
sudo apt install maven
- install Gradle:
sudo apt install gradle
We assume that you already have a Java JDK installed. If not, then you can use (on Debian-based distributions still):
sudo apt install openjdk-21