Tech Tips

  1. Programming
  2. 24 view

Memo of How to Build Java Develop Environment

Since I don’t use Java usually, when I use Java I check how to build develop environment every time. So, I’ll make a note of this.

# Install JDK
# Ref: https://docs.aws.amazon.com/corretto/latest/corretto-22-ug/amazon-linux-install.html
sudo yum install java-22-amazon-corretto-headless

# Install SDKMAN
# Ref: https://sdkman.io/
curl -s "https://get.sdkman.io" | bash
exec $SHELL -l

# Install Gradle
sdk install gradle

# Create Gradle's project
mkdir sample_project
cd sample_project
gradle init --use-defaults --type java-application
./gradlew build
./gradlew run

# Install library
# edit src/build.gradle.kts
# ex) implementation("software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk:1.19.1")
./gradlew build

Programming recent post

  1. The Benefits of PubSubClient and Points to Be…

  2. Memo of How to Build Java Develop Environment…

  3. How to Upload Program to Arduino Using Platfo…

  4. How to avoid GPG error when using ROS Docker …

  5. Trying to Develop Visited Countries Colored M…

関連記事

PAGE TOP