Download DIVAs4 Source Code from GitHub repository
Technical requirements
The following software is required to work on DIVAs 4:
- Java SE Development Kit 8
- Eclipse IDE for Java Developers with Maven support. In this tutorial, we will be using Eclipse MARS – Release (4.5.1).
- To checkout the source code, you can use either TortoiseSVN Version1.7 (issues with connection to the repository in version 1.9) or GitHub Desktop
Download DIVAs4 Source Code from GitHub repository
The source code for the DIVAs 4 framework can be checked out from Github Desktop.
- In the “Repository URL” type the following URL:
https://github.com/utdal/mavs-divas - In the “Local Path” choose the path you want to save the source code.
- Click on “Clone” for downloading the code.
Requirements for DIVAs4
Technical requirements
The following software is required to work on DIVAs 4:
-
- Java SE Development Kit 8
- Eclipse IDE for Java Developers with Maven support. In this tutorial, we will be using Eclipse MARS – Release (4.5.1).
Any recent version of Eclipse should work as well.
Download the Java SE Development Kit 8
The Java JDK for the DIVAs 4 framework can be downloaded from the Oracle website.
-
-
- Go to the following link:
Java SE Development Kit 8 - Download the correct JDK for your system and install.
- Go to the following link:
-
Download DIVAs JAR files and other external dependencies
The DIVAs 4 framework makes use of a set of external Java libraries. In addition, a wide variety of 3D models are used by the DIVAs’ 3D visualizer. In order to compile any application built using DIVAs, it is necessary to download these libraries and models from here. Then, you must link them to your application as follows:
-
- Download the following zipped file that contains the set of all JAR libraries.
- Unzip the folder named “.m2” to your local user folder.
- In eclipse, Go to Windows > Preferences > Maven > User Settings, make usre that the path at the “Local Repository” field matches the path to where you unizipped the “.m2” folder in the previous step.
Importing DIVAs in eclipse
To import the DIVAs 4 framework into eclipse IDE, you must do the following:
-
- Open the Eclipse IDE and select your workspace
- Right click on the project explorer > click “Import…” > click “Maven” > choose “Existing Maven Projects” and press “Next”
- A dialog will be displayed. Click “Browse” and choose the root directory where you checked out the DIVAs framework. In the project pane, make sure that the parent checkbox “/divas/pom.xml” is checked. Then, click “Finish”.
-
- Maven modules will show in the Package Explorer
- Wait for Eclipse to finish “Building workspace”
Configuring the Eclipse environment
The DIVAs 4 framework makes use of a set of external Java libraries. In addition, a wide variety of 3D models are used by the DIVAs’ 3D visualizer. In order to compile any application built using DIVAs, it is necessary to download these libraries and models then you must link them to your application as follows:
-
-
-
-
- In eclipse, Go to Windows > Preferences > Java > Installed JREs > Add > Standard VM > Next. A new window should appear as follows:
- Click on Directory and navigate to where you installed the Java JDK. Make sure you select the “jdk” folder and not the “jre”. Then click “Finish”.
-
-
-
-
-
-
-
- IMake sure to check the box beside the installed JRE name as in the following figure:
-
-
-
-
-
- Press “OK” and wait for Eclipse to finish “Building workspace”.
-