[Java] JAVA+STS (Spring Tool Suite) environment construction procedure

1 minute read

table of contents

Introduction

JAVA+STS (Spring Tool Suite) environment construction procedure. The goal is to be able to install java openjdk-12.0.2 and STS (Spring Tool Suite) 4 according to this procedure.

Java settings

  • Download openjdk-12.0.2 zip file from jdk official site.
  • Unzip the downloaded zip to C drive and confirm that it is extracted as C:\jdk-12.0.2.
  • Enter environment in windos search bar and open edit environment variable. Start environment variable setting

  • In System environment variable, click Path and press Edit button.
  • Press the New button and enter the path C:\jdk-12.0.2\bin. image.png

  • Click the OK button on the Edit environment variable name dialog and the OK button on the Environment variable dialog to finish setting the environment variables.
  • At the command prompt, type the following command and press enter.

    java -version
    
  • If the output below is displayed, you are successful.
openjdk version "12.0.2" 2019-07-16
OpenJDK Runtime Environment (build 12.0.2+10)
OpenJDK 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)

Install Spring Tools 4 (STS4 for short)

  • Download [Spring Tools 4 for Eclipse] from Official site of Spring.
  • Move the downloaded jar file directly under C drive.
  • At the command prompt, type the following command and press enter. (The version may change depending on the download timing.In that case, edit the following command according to the downloaded file name.)

    java -jar C://spring-tool-suite-4-4.7.0.RELEASE-e4.16.0-win32.win32.x86_64.self-extracting.jar
    
  • Installed in the user’s root folder. C:\Users\your username\sts-4.7.0.RELEASE