[JAVA] Spring Tool Suite 4 installation manual

Abstract

Purpose

environment

Prerequisite environmental information

Environmental information to be introduced this time

Overview

Detailed procedure

Install Java

  1. Install the appropriate jdk. For jdk8, get the installer from here and execute it.

  2. Register the path of the jdk installation directory in the environment variable JAVA_HOME.

  3. Add % JAVA_HOME% / bin to the environment variable Path.

  4. Confirm that the above procedure is completed. Execute the following command from the command prompt.

>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.8.0_181

>java -version
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

Install maven

  1. Download Maven. Get the archive from "Binary zip archive" of here and extract it to any location.
  2. Register the extracted directory path in the environment variable M2_HOME.
  3. Add % M2_HOME% / bin to the environment variable Path.
  4. Confirm that the above procedure is completed. Execute the following command from the command prompt.
>echo %M2_HOME%
C:\apache-maven-3.5.4

>mvn -v
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T03:33:14+09:00)
Maven home: C:\apache-maven-3.5.4\bin\..
Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_181\jre
Default locale: ja_JP, platform encoding: MS932
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Install STS

  1. Download STS. Get the archive from "Download STS4" of "Spring Tools 4 for Eclipse" of here and extract it to any location.

Translate to Japanese

  1. Download the Pleiades plugin. Obtain the archive from "Pleiades plug-in download" of here and extract it to any location.
  2. Execute setup.exe in the extracted directory.
  3. Select "SpringToolSuite4.exe" in the directory expanded above from the selection of "Application to be translated into Japanese".
  4. Click "Japaneseize" and finish when completed.

Enable lombok

  1. Download the jar. Get the jar from here.
  2. Run (double-click) the lombok jar.
  3. If the IDE is not detected (probably not), specify the directory extracted above from "Specify location ...".
  4. Confirm that "SpringToolSuite4.exe" is displayed in "IDEs" and check it, click "Install / Update", and exit when completed.

Check workspace settings

Make the following settings for each workspace.

Open the settings screen
  1. Execute SpringToolSuite4.exe and select the directory that will be the workspace.
  2. Open the setting screen from "Window (W)"> "Settings (P)" on the menu bar.
Check the JRE
  1. Click "Java"> "Installed JRE" in the side menu and check if the jdk installed this time is checked.
  2. If not, open the Add Wizard from "Add (A) ..." on the right.
  3. Select "Standard VM", proceed to the next step, specify the same directory as JAVA_HOME as the JRE home, and click" Done (F) ".
  4. The added jdk will be displayed in the "Installed JRE" list. Check it and click Apply.
Check where to install Maven
  1. Click "Maven"> "Install" in the side menu and check if the Maven installed this time is checked.
  2. If not, open the Add Wizard from "Add (A) ..." on the right.
  3. Set the installation type to "External", specify the same directory as M2_HOME for the installation home, and click" Finish (F) ".
  4. The added Maven directory will be displayed in the list of "Select installation to use to start Maven:". Check it and click Apply.
Check the font.
  1. Click General> Appearance> Colors and Fonts in the side menu.
  2. Modify the font of each editor as appropriate.

Reference site

Installation procedure of Java configuration management tool Maven Installation and Japanese localization of Spring Tool Suite --Qiita Lombok usage memo --Qiita Eclipse garbles only the front part of the comment --Qiita

Recommended Posts

Spring Tool Suite 4 installation manual
[Environment construction] Spring Tool Suite4 installation (Mac)
Spring Tool Suite installation and Japanese localization for Windows
Cancel STS (Spring Tool Suite) Japanese localization
Put Java 11 and spring tool suite on mac
JAVA + STS (Spring Tool Suite) environment construction procedure
I can't find Pivotal tc server Developer Edition in Spring Tool Suite
Change the half-width space of STS (Spring Tool Suite) from "u" to "・"