|
|
|
|
|
## Step 1 - Required installation
|
|
|
Be sure to have an IDE, JDK 17
|
|
|
|
|
|
It is crucial to download an **IDE** to run the application.
|
|
|
<br>
|
|
|
An example for IDE is IntelliJ:
|
|
|
[IntelliJ Download](https://www.jetbrains.com/help/idea/installation-guide.html)
|
|
|
|
|
|
The application is developed with **JDK 17**. If you have JDK16 or lower, it is needed to download JDK17
|
|
|
<br>
|
|
|
Link to JDK17 download:
|
|
|
[JDK 17 Download](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)
|
|
|
|
|
|
## Step 2 - Download the application
|
|
|
The application can be downloaded with Git or by downloading the zip file
|
|
|
|
|
|
### Opt 1 - Download project through clone from git:
|
|
|
1. Download Git if you do not have Git: [Download Git](https://git-scm.com/downloads)
|
|
|
|
|
|
2. Go to the project in GitLab: [G1-06 GitLab](https://gitlab.stud.idi.ntnu.no/G1-06/idatt-1002-2022-1-06)
|
|
|
|
|
|
3. Open terminal locate the folder that will hold the project
|
|
|
|
|
|
4. Copy this text:
|
|
|
```bash
|
|
|
git clone https://gitlab.stud.idi.ntnu.no/G1-06/idatt-1002-2022-1-06.git
|
|
|
```
|
|
|
|
|
|
<br>and paste it inside the terminal and press enter
|
|
|
|
|
|
The project can now run from the chosen folder
|
|
|
|
|
|
### Opt 2 - Download project as zip
|
|
|
1. Go to the project in GitLab: [G1-06 GitLab](https://gitlab.stud.idi.ntnu.no/G1-06/idatt-1002-2022-1-06)
|
|
|
|
|
|
2. Make sure you are on the front page
|
|
|
|
|
|
3. Press "Download"
|
|
|
|
|
|
4. Press "zip"
|
|
|
|
|
|
![ZipDownload](uploads/452f572467b663e63cdaf46cb826c14a/ZipDownload.jpg)
|
|
|
# Run Application:
|
|
|
# Option 1:
|
|
|
## Step 3 - Open the project folder
|
|
|
1. Select either HandballApplicationMac or HanballApplicationWin depending on your operating system.
|
|
|
![step3](uploads/7dbd3a58e5367d5044d15678cd986ecf/step3.png)
|
|
|
|
|
|
## Step 4 - Run Jar file
|
|
|
1. Run the application by double clicking the Jar file.
|
|
|
![Step4](uploads/5eca3f455dab257a11a4a527bd148970/Step4.png)
|
|
|
|
|
|
## Step 5 - Select saved data
|
|
|
1. Navigate to the same folder and choose the savedTournament file to import saved data.
|
|
|
![Step5](uploads/351ef04679b809ad59c8006a4e725a1a/Step5.png)
|
|
|
|
|
|
# Option 2:
|
|
|
## Step 3 - Open the project in an IDE
|
|
|
The project runs through an IDE. This example is opened in IntelliJ
|
|
|
1. Open IntelliJ and press "Open": arrow 1 on the illustration beneath
|
|
|
![OpenIntelliJ](uploads/7bd00f72ef079cd0df178021cbb3ac92/OpenIntelliJ.jpg)
|
|
|
|
|
|
2. Find the folder where the project is located and open the folder called "idatt-1002-2022-1-06" and press "Open": illustrated beneath
|
|
|
![OpenFolder](uploads/e7e3f47854d2a56cbf0e44948087aee6/OpenFolder.jpg)
|
|
|
|
|
|
## Step 4 - Add configuration
|
|
|
To run the application, a configuration is needed
|
|
|
|
|
|
1. Click on "Add configuration" at the top of the window: arrow 1 on the illustration beneath
|
|
|
![Add_Configuration](uploads/2ac999e3733df9defce31615f247263d/Add_Configuration.jpg)
|
|
|
|
|
|
2. Click on "Add new...": arrow 2 on the illustration beneath
|
|
|
![Add_new](uploads/225170ad8a71e36edf92f7073b32fc84/Add_new.jpg)
|
|
|
|
|
|
3. Run Configuration window<br>
|
|
|
3. In the run command field, type:
|
|
|
```bash
|
|
|
clean javafx:run
|
|
|
```
|
|
|
4. Click "Apply"<br>
|
|
|
5. Click "Ok"<br>
|
|
|
![Command](uploads/5cfe9a7f0537095d4c78f038df306ffc/Command.jpg)
|
|
|
|
|
|
The window will change to the first page presented when intelliJ opens a project. At the "Add configuration" this should be shown:
|
|
|
![Skjermbilde_2022-04-23_kl._22.25.37](uploads/8749dfd58ee8382757003261da2a7a2b/Skjermbilde_2022-04-23_kl._22.25.37.png)
|
|
|
|
|
|
## Step 5 - Select saved data
|
|
|
1. Navigate to either HandballApplicationMac or HandballApplicationWin depending on your operating system.
|
|
|
![step3](uploads/7dbd3a58e5367d5044d15678cd986ecf/step3.png)
|
|
|
|
|
|
2. Choose the savedTournament file to import saved data.
|
|
|
![Step5](uploads/351ef04679b809ad59c8006a4e725a1a/Step5.png)
|
|
|
**Now the application is ready to run**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|