Environment Setup on Windows

1. Gitのインストール

  1. Access the Git for Windows official site.

  2. Click “Download” on the top page.

  3. After the download is complete, run the installer.

  4. Click “Next” for all steps.

  5. Wait for the installation to complete.

  6. Click “Finish” when the installation is complete.

  7. Enter “Git Bash” in the search bar and run Git Bash.

  8. If the screen is displayed, the installation is successful.

2. Pythonのインストール

  1. Access the Python official site.

  2. Click “Download Python ~” on the top page.

  3. After the download is complete, run the installer.

  4. Make sure “Add python.exe to PATH” is checked, then click “Install Now”.

  5. Wait for the installation to complete.

  6. Click “Close” when the installation is complete.

  7. Open Git Bash, enter python --version, and if Python [version] is displayed, it is successful. (If not displayed, reopen Git Bash.)

3. OpenJDKのインストール

  1. Access the OpenJDK download page.

  2. Click “zip” next to Windows for version 17.0.2.

  3. Extract the downloaded zip file.

  4. Confirm that a folder like “jdk-17.0.2” is created after extraction.

  5. Move this folder “jdk-17.0.2” to the root of C:¥.

  6. Run the command prompt as an administrator on Windows.

  7. Once opened, run the following command.

    powershell -command "[System.Environment]::SetEnvironmentVariable(\"JAVA_HOME\", \"c:\jdk-17.0.2\", \"Machine\")"
    
  8. Next, run the following command.

    powershell -command "$oldpath = [System.Environment]::GetEnvironmentVariable(\"Path\", \"Machine\"); $oldpath += \";c:\jdk-17.0.2\bin\"; [System.Environment]::SetEnvironmentVariable(\"Path\", $oldpath, \"Machine\")"
    
  9. Open Git Bash and enter java -version. If the following text is displayed, the installation is successful.

    openjdk version "17.0.2" 2022-01-18
    OpenJDK Runtime Environment (build 17.0.2+8-86)
    OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)