-
Notifications
You must be signed in to change notification settings - Fork 2
Setup Requirements
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.
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"
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".
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)
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"
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.
- Checking Java version
i. Type Java --version ###vvThe image below should appear vv
If no response is indicated Go to Java's site and install Java and run it on your device. Java Site
-
Download the Java JDK -->JAVA JDK
-
When installing the JDK, place it into the JAVA directory on your device for ease of setup.
-
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.
vi. A table Titled Environment Variables will appear, containing Two Tabulated Dialog boxes.
i. User Variable
ii. 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
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%
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.
