Requirements
JDK (Java Development Kit) 8
Regardless of the operating system, save the JDK 8 installation path for later use. The path will be necessary to set up the integrated development environment (IDE) later.
Windows
Download and install the latest version of JDK 8 from the Oracle repository.
The JDK 8 installation path is explicitly set in the Windows installer, and can be saved from there.
Mac OS and Linux
Run the following command in a terminal to check whether JDK 8 is already installed.
javac version
If the command returns a JDK version number that starts with 1.8 or higher, the system already has the proper JDK installed. Otherwise, the current JDK must be uninstalled before installing JDK 8.
Run the following command to uninstall an older JDK.
$ sudo rm -rf /Library/Java/JavaVirtualMachines/jdk<version>.jdk
Download and install the latest version of JDK 8 from the Oracle repository.
On Linux, run the following commands.
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
The JDK 8 installation path is returned by the terminal after installation is complete.
IDE
Simudyne recommends using IntelliJ Idea. This IDE also manages builds, so it is not necessary to install a separate build tool, however, it is recommended that the Maven build tool be installed in the next section.
There are instructions for using the Eclipse IDE in the reference section.
Maven
It is recommended to install the Maven build tool to manage Simudyne SDK projects, even when using IntelliJ Idea.
Windows
- Visit the Maven repository and download the latest release.
- Extract the file and save it in the
C:\Program Filesdirectory. - Right click on the Windows button, in the lower left corner of the screen, and open "Settings".
- In the search field, search for and select "Edit the system environment variables".
- On the "Advanced" tab, click "Environment Variables".
- In "System Variables", add the following variables if they do not exist. Otherwise, edit them accordingly.
| Name | Value |
|---|---|
| JAVA_HOME | JDK repository (JDK installation path) |
| M2_HOME | C:\Program Files\apache-maven-x.x.x |
| MAVEN_HOME | C:\Program Files\apache-maven-x.x.x |
| PATH | Add "%M2_HOME%\bin" to existing variable |
To add the Maven home location to the PATH system variable:
- Select the PATH system variable.
- Underneath the list of system variables, click "Edit".
- In the dialog that appears, click "New."
- Enter "%M2_HOME%\bin" into the next empty PATH variable row.
- Hit "Enter" to save the value.
Finally, check whether the install was successful by running the following command.
mvn -v
If it returns Apache Maven X.X.X, the install was successful.
Mac OS and Linux
The process of installing Maven differs slightly between Mac OS and Linux.
On Mac OS, make sure Homebrew is installed, then run the following command.
$ brew install maven
On Linux, run the following command.
$ apt-cache search maven
$ sudo apt-get install maven