Spring Tool Suite 4 installation manual
Abstract
Purpose
- Create an environment where STS4 works
- Adjust the settings of STS4
environment
Prerequisite environmental information
Environmental information to be introduced this time
- Java SE 8 (jdk-8u181)
- Maven 3.5.4
- Spring Tool Suite 4
Overview
- Install Java
- Install Maven
- Install STS
- Translate to Japanese
- Enable lombok
- Check workspace settings
Detailed procedure
Install Java
-
Install the appropriate jdk.
For jdk8, get the installer from here and execute it.
-
Register the path of the jdk installation directory in the environment variable JAVA_HOME
.
-
Add % JAVA_HOME% / bin
to the environment variable Path
.
-
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
- Download Maven.
Get the archive from "Binary zip archive" of here and extract it to any location.
- Register the extracted directory path in the environment variable
M2_HOME
.
- Add
% M2_HOME% / bin
to the environment variable Path
.
- 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
- 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
- Download the Pleiades plugin.
Obtain the archive from "Pleiades plug-in download" of here and extract it to any location.
- Execute setup.exe in the extracted directory.
- Select "SpringToolSuite4.exe" in the directory expanded above from the selection of "Application to be translated into Japanese".
- Click "Japaneseize" and finish when completed.
Enable lombok
- Download the jar.
Get the jar from here.
- Run (double-click) the lombok jar.
- If the IDE is not detected (probably not), specify the directory extracted above from "Specify location ...".
- Confirm that "SpringToolSuite4.exe" is displayed in "IDEs" and check it, click "Install / Update", and exit when completed.
- By performing this procedure, STS will be able to detect methods that are not specified in the source according to the lombok annotation.
Check workspace settings
Make the following settings for each workspace.
Open the settings screen
- Execute SpringToolSuite4.exe and select the directory that will be the workspace.
- Open the setting screen from "Window (W)"> "Settings (P)" on the menu bar.
Check the JRE
- Click "Java"> "Installed JRE" in the side menu and check if the jdk installed this time is checked.
- If not, open the Add Wizard from "Add (A) ..." on the right.
- Select "Standard VM", proceed to the next step, specify the same directory as
JAVA_HOME
as the JRE home, and click" Done (F) ".
- The added jdk will be displayed in the "Installed JRE" list. Check it and click Apply.
Check where to install Maven
- Click "Maven"> "Install" in the side menu and check if the Maven installed this time is checked.
- If not, open the Add Wizard from "Add (A) ..." on the right.
- Set the installation type to "External", specify the same directory as
M2_HOME
for the installation home, and click" Finish (F) ".
- 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.
- If you use the default font Consolas, the Japanese at the beginning of the comment line may be garbled.
- Click General> Appearance> Colors and Fonts in the side menu.
- 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