Skip to content

Setup Requirements

zrpersad edited this page Nov 22, 2023 · 2 revisions

1. Download VS CODE - ALL USERS

Use this link to download VS Code based on your current OS: https://code.visualstudio.com/download. When finished downloading open the download and finish the installation process.

2. Download GIT - ALL USERS

Use this link to download git based on your current OS: https://git-scm.com/downloads. When finished downloading open the download and finish the installation process. To ensure you have completed this correctly, open your terminal and type this command: "git --version", hit enter you should see a similar response: "git version 2.39.3"

3. FOR MAC/LINUX USERS ONLY

1. Install homebrew

Press command + spacebar, then search terminal. Open the terminal then copy this command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" in the terminal and hit enter. You would have to enter the password you use to login to your computer,NB. as you type your password it will not be visible on screen. Press enter and wait for the installation to complete. To ensure homebrew is installed correctly, enter this command "brew -v" in terminal, press Enter you should see an output similar to this "Homebrew 4.1.21".

2. Install Java and JavaJDK

Copy this command "brew install --cask adoptopenjdk" and paste it in the terminal. Press enter and wait for the installation to complete. To if you successfully completed the install, copy this command "java --version" and you should see a similar output:

openjdk 17.0.6 2023-01-17

OpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10)

OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode)

3. Install Maven

In the terminal, enter this command: "brew install maven" and press Enter. When the installation is completed, to know if it was correctly installed, enter this command in the terminal: "mvn --version". You should see a similar outout to this:

Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)

Maven home: /opt/homebrew/Cellar/maven/3.9.5/libexec

Java version: 21.0.1, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk/21.0.1/libexec/openjdk.jdk/Contents/Home

Default locale: en_US, platform encoding: UTF-8

OS name: "mac os x", version: "14.0", arch: "aarch64", family: "mac"

4. Windows Java Installation

Windows Setup

Check if Java is installed on your device.


1.Open command prompt from the Search bar

i. Type in the search bar cmd or command prompt. ii. Select run as administrator.

1)b. Open command prompt using 🪟 + r

i. Type cmd into the search bar that appears. ii. select enter for user privilege. ii.b. select ctrl + shift + enter for admin privilege.

  1. Checking Java version

i. Type Java --version ###vvThe image below should appear vv Java Commands response


If no response is indicated Go to Java's site and install Java and run it on your device. Java Site


Download and Setup of Java JDK (Java Development Kit)

  1. Download the Java JDK -->JAVA JDK

  2. When installing the JDK, place it into the JAVA directory on your device for ease of setup.

  3. Setting up the JDK

i. In Settings go into System. ii. In System go into About iii. In About, under Device Specifics. Select Advanced System Settings iv. A window similar to the one below will appear. Select Environment variables

v. System Properties

vi. A table Titled Environment Variables will appear, containing Two Tabulated Dialog boxes.

i. User Variable

User Variable

ii. System Variable

System Variable

vii. In System Variable, Select new

i. Copy the JDK path where it was previously installed and paste it into the Variable Value

ii. Name the Variable JAVA_HOME

iii. Select Ok to save the information

viii. In User Variable, Select PATH

i. A tabulated Dialogue box will appear

ii. Select New

iii. Type in Dialogue box %JAVA_HOME%\bin

PATH

iV. Select Ok

xi. Restart your Windows device

x. Open the command prompt as indicated previously.

i. Run the command for checking the JAVA version --> JAVA --version

ii. Run the command to check the jdk PATH -- ECHO %JAVA_HOME%

JDK Command


5. INSTALL VS CODE EXTENSIONS

Firstly, open VS CODE

For Windows users press "CTRL + SHIFT + X", for MAC users press "COMANND + SHIFT + X". This would open VS Code extensions, in here firstly search "CodeRunner" extension and press install. Screenshot 2023-11-22 at 11 07 05 AM

Secondly, search "Extensions Pack for java" and press install

Screenshot 2023-11-22 at 11 10 00 AM

Thirdly, close and reopen VS Code and move on to this page How To Run <----- by clicking to see how to run the code and tests.