Last updated on 16th July 2024
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.
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.
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
The process of installing JDK 8 differs slightly between Mac OS and Linux.
On Mac OS, make sure Homebrew is installed, then run the following commands.
brew tap caskroom/versions
brew cask install java8
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.
Simudyne recommends using IntelliJ Idea. This IDE also manages builds, so it is not necessary to install a separate build tool.
There are instructions for using the Eclipse IDE in the reference section.
If using an IDE other than IntelliJ Idea, Simudyne recommends installing the Maven build tool.
C:\Program Files
directory.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:
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.
On Mac OS, run the following command.
$ brew install maven
On Linux, run the following command.
$ apt-cache search maven
$ sudo apt-get install maven