Session 1: General Info
Schedule: Tuesdays
- Group 1: 14:15 - 16:00
- Group 1: 16:15 - 18:00
- Delta Center, Room Nr. 2047
Development Environment
Sometimes Ubuntu will be rendered in a tiny VirtualBox screen where changing resolution won't help. In order to make the screen bigger, follow the next steps.
- Start the Ubuntu VM on VirtualBox
- Click in Devices > Insert Guest Additions CD image...
- Click "Run" on the pop-up window and provide your password to authenticate
- A terminal window will appear and will copy and install some modules automatically
- Once the installation is done, you will be asked to "Press Enter" to close the window
- Restart the running Virtual Machine
Programming Languages
Java
- Verify the version of Java installed:
java --version
. If you don't get any result or any suggestions to install, then follow the below steps:
- Verify the version of Java installed:
- Update the package repository:
sudo apt update
- Install Java RE:
sudo apt install default-jre
- Install Default JDK (Java 11):
sudo apt install default-jdk
- If you have multiple version of Java installed on your system, you can decide which one is the default one.
- First, run this
sudo update-alternatives --config java
command to show all the installed version of Java on your computer - The choices are represented by numbers, select the number that's mapped to Java 11
- First, run this
- If you have multiple version of Java installed on your system, you can decide which one is the default one.
Install Python
Most factory versions of Ubuntu 18.04 or Ubuntu 20.04 come with Python pre-installed. Check your version of Python by entering the following:
python --version
If the revision level is lower than 3.7.x, or if Python is not installed, continue to follow these instructions.
Package Managers
- SDK Manager (sdkman):
curl -s "https://get.sdkman.io" | bash
- Snap:
sudo apt install snapd
- pip: Official Installation Guide
- Spring Boot CLI:
sdk install springboot
- Create Spring Boot Application - Gradle based project:
spring init --build=gradle --dependencies=web demo
- Create Spring Boot Application - Maven based project:
spring init --dependencies=web demo
- SDK Manager (sdkman):
Build Automation Tools:
- Gradle:
sudo snap install gradle --classic
- Upgrade Gradle:
- Add this PPA repository:
sudo add-apt-repository spa:cwchien/gradle
- Download package information from all configured sources:
sudo apt-get update
- Upgrade Gradle:
sudo apt upgrade gradle
- Add this PPA repository:
- Upgrade Gradle:
- Gradle: