Skip to content

Installation Guide

Dmitri edited this page Nov 16, 2024 · 15 revisions

Supported Operating Systems


Linux

1. Install OpenJDK 20 and Maven

Update your package manager and install OpenJDK 20 along with Maven:

sudo apt-get update && sudo apt-get install -y openjdk-20-jdk maven

2. Install SDKMAN!

SDKMAN! helps manage Java versions. Install it by running:

curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"

3. Set Java 20 as Default

Install Java 20 with SDKMAN! and set it as the default:

sdk install java 20-open
sdk default java 20-open

4. Verify Java and Maven Installation Check the Java and Maven versions to verify the installation:

java -version
mvn -v

MacOS

1. Install Java 20 and Maven

Install Java 20 and Maven using Homebrew:

brew install maven
brew install openjdk@20

2. Verify Java and Maven Installation

Check the Java and Maven version to confirm the installation:

java --version
mvn --version

Windows

1. Install Chocolatey

Open PowerShell as Administrator and run:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

2. Install Java 20 and Maven

Use Chocolatey to install Java 20 and Maven:

choco install openjdk --version=20
choco install maven

3. Verify Java and Maven Installation

Confirm the installation by checking the Java and Maven versions:

java --version
mvn --version

Build & Run(All Platforms)

After installing the required dependencies, follow these steps on Linux, MacOS, or Windows:

1. Clone the Repository

Clone the repository by running:

git clone https://github.com/DmitriLezama/autograder.git

2. Navigate to the Project Directory

Move into the project directory:

cd autograder

3. Build the Project

Clean and package the project with Maven:

mvn clean package

4. Run the Application

Run the application using the packaged JAR file:

java -jar target/autograder-1.0-SNAPSHOT-jar-with-dependencies.jar

The application should now be running successfully.

Clone this wiki locally