# 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
- プログラミング
- 104 view
Java の環境構築方法メモ
普段 Java を使用しないので、使うときは毎回調べてしまうのでメモしておきます。