Fully hand-held tutorial on setting up the Java environment to a usable state as quickly as possible. Only knowledge of using the terminal is expected. This tutorial will be completely self-contained (excluding links to downloads).
...
- Download the latest Gradle 7 distribution (7.4.2 as of writing).
- Choose the "complete" version.
- Remember where you downloaded it.
Unpack Gradle (the following are excerpted from the gradle website)
cd into the directory where you downloaded Gradle. Then
Excerpt - Unzip the distribution zip file in the directory of your choosing, e.g.:
Code Block $ mkdir /opt/gradle $ unzip -d /opt/gradle gradle-7.4.2-all.zip
Add to path
Excerpt - In File Explorer right-click on the
This PC
(orComputer
) icon, then clickProperties
->Advanced System Settings
->Environmental Variables
. - Under
System Variables
selectPath
, then clickEdit
. Add an entry forC:\Gradle\gradle-7.4.2\bin
. Click OK to save.
- In File Explorer right-click on the
Verify installation
Excerpt - Open a console (or a Windows command prompt) and run
gradle -v
to run gradle and display the version, e.g.:
Code Block $ gradle -v ------------------------------------------------------------ Gradle 7.4.2 ------------------------------------------------------------
- Open a console (or a Windows command prompt) and run
- Configure for IHMC software
- excerpt from Gradle#Installation
- create gradle.properties file in C:/Users/user/.gradle/gradle.properties
- Copy/paste
Code Block org.gradle.java.home=C:/Program Files/Java/jdk-17.0.3.1 org.gradle.jvmargs=-Xmx4g
...
- Download the latest Gradle 7 distribution (7.4.2 as of writing).
- Choose the complete version.
- Remember where you downloaded it.
Unpack Gradle (the following are excerpted from the gradle website)
Excerpt - Create a new directory
C:\Gradle
with File Explorer. - Open a second File Explorer window and go to the directory where the Gradle distribution was downloaded. Double-click the ZIP archive to expose the content. Drag the content folder
gradle-7.4.2
to your newly createdC:\Gradle
folder.
- Create a new directory
Add to path
Excerpt - In File Explorer right-click on the
This PC
(orComputer
) icon, then clickProperties
->Advanced System Settings
->Environmental Variables
. - Under
System Variables
selectPath
, then clickEdit
. Add an entry forC:\Gradle\gradle-7.4.2\bin
. Click OK to save.
- In File Explorer right-click on the
Verify installation
Excerpt Open a console (or a Windows command prompt) and run
gradle -v
to run gradle and display the version, e.g.:Code Block $ gradle -v ------------------------------------------------------------ Gradle 7.4.2 ------------------------------------------------------------
- Configure for IHMC software
- excerpt from Gradle#Installation
- create gradle.properties file in C:/Users/user/.gradle/gradle.properties
- Copy/paste
Code Block org.gradle.java.home=C:/Program Files/Java/jdk-17.0.3.1 org.gradle.jvmargs=-Xmx4g
...