Setting Intellij IDE Project SDK
The Gradle project for the MiniReal ABM codebase relies on the avalability of Java JDK 17 (see Installing JDK ). And when using Intellij IDE, this SDK (Software Development Kit) for Java has to be set accordingly in the OS or IDE. In this documentaion, we will see how to set it up in Intellij IDE.
-
Select the
Project Structure
option from theFiles
tab dropdown list.
Figure: Navigating to a project settings window from the Files dropdown
-
After clicking on the
Project Structure
option, the following popup window will be displayed. This window will show the relevant SDK (JDK) information for the opened project.
Figure: Project Settings window
-
From the
Project Structure
window, select the dropdown component next to theSDK
label & choose theDownload JDK
option.
Figure: Selecting download JDK option
-
Another small window will pop-up to prompt for the JDK version & vendor. On this window please select
JDK 17
version provided by theEclipse Termurin
vendor, whose JDK is namedAdopt Open JDK
. And then click on theDownload
button & wait for the process to finish.
Figure: Downloading Adopt Open JDK 17
-
Once the download is completed you can select the recently added JDK from the drop-down option next to the SDK field on the
Project Setting
window. Take note to also select the correctLanguage Level
version (which is also 17). Then click onApply
&Ok
.
Figure: Selecting correct JDK versions
-
Finally you can test the correct setup of the JDK version by opening the Gradle side window located on the right-hand side of the IDE. First select the
clean
& thenbuild
options from the Tasks choice. These steps will build the ABM Gradle project as fresh.Tasks
->build
->clean
Tasks
->build
->build
Figure: Build Gradle ABM project and test correct setup of JDK
Congratulations on successfully setting up the Java SDK (JDK) for WSim4ABM (MiniReal) Gradle project workflow. You can now perform modeling locally and generate your model
jar
files conveniently.