0.1. Environment Setup
Development kit, version control system, integrated development environment, and project management for Java programming.
Development Kit
Install the latest version of the Java SE Development Kit (JDK) on your local machine:
The required version:
17.x.x
(or higher)
Version Control
Install Git using any of the following instructions:
Run the following commands on a terminal by replacing user.email
and user.name
with your email address and name:
Integrated Development Environment
Install the latest version of IntelliJ IDEA on your local machine:
The recommended version:
2022.3.x
(Ultimate Edition)Apply for the academic license with your school email address to use the ultimate version.
Project Management
Launch IntelliJ and create a Gradle project by clicking the [New Project]
button at the top:
Name:
dsa-java
Location:
local_path/dsa-java
Check "Create Git repository"
Language: Java
Build system: Gradle
JDK: 17
Gradle DSL: Groovy
Uncheck "Add sample code"
Advanced Settings:
GroupId:
edu.emory.cs
ArtifactId:
dsa-java
Open gradle/wrapper/gradle-wrapper.properties
and make sure distributionUrl
indicates the latest version of Gradle:
Click [Settings - Build, Execution, Deployment]
on the menu:
Click
[Build Tools - Gradle]
and setGradle JVM
to 17.Click
[Compiler - Java Compiler]
and setProject bytecode version
to 17.
Click [File - Project Structure]
and select [Project Settings]
:
Click
[Project Settings - Project]
and setSDK
to 17 andProject language level
to SDK default.Click
[Project Settings - Modules - Dependencies]
and setModule SDK
to 17.Go to
[Platform Settings - SDKs]
and select 17.
Open build.gradle
and make sure sourceCompatibility
and targetCompatibility
are set to java version 17 (add the following configurations if they do not exist already):
Lastly, check mavenCentral()
is configured as a repository in your build.gradle
:
GitHub Integration
To integrate the project with your GitHub repository, click [Settings]
:
Choose
[Version Control - Github]
on the left pane.Click
[+]
and login with your GitHub ID and password.If you use two-factor authentication, log in with your personal access token.
Create .gitignore
under the project and add the following contents:
Click [Git - GitHub - Share Project on Github]
and create a repository:
Make sure to check private.
Repository name:
dsa-java
Remote:
origin
Description:
Data Structures and Algorithms in Java
Add all files and make the initial commit. Check if the repository is created under your GitHub account: https://github.com/your_id/dsa-java
.
Last updated
Was this helpful?