Setup for Introduction to Spring Boot 2
Required Software
- Intel-compatible processor (with reasonably recent hardware)
- 8+ GB RAM recommended
- Approximately 2 GB free hard disk space
- Internet access
- 7-zip (open source zip utility): Download and install.
- Adobe Acrobat Reader: Download and install.
- Java Development Kit (instructions for downloading and installing are below)
- Eclipse (instructions for downloading and installing are below)
- Tomcat (instructions for downloading and installing are below)
Instructions
Install Java Development Kit – JDK 11 (11.0.8)
(Note that any JDK 11 version should work fine. Other close later Java versions (e.g. Java 12 or 13) should be fine also, but have not been tested.)
- Download the installer file for your OS. The file name is something like: jdk-11.0.8_windows-x64_bin.exe
- Run the installer and take all defaults.
- Create or modify environment variables as appropriate for your OS. This will add an environment variable JAVA_HOME, and modify your path to include the jdk bin folder
- JAVA_HOME:
- Right click My Computer and choose Properties > click the Advanced tab > click the Environment Variables button.
- In the bottom half of the dialog, click New to add a new System variable.
- Variable name: JAVA_HOME (this is case-sensitive).
- Variable value: C:\Program Files\Java\jdk-11.0.8 (or adjust to the actual path where you installed the JDK – please double-check this path – probably best to copy and paste it).
- Click OK.
- Path:
- Find this existing entry in the bottom half of the Environment Variables button, and click Edit.
- Click in the Variable value field and move your cursor all the way to the left (pressing Home on your keyboard should do this quickly for you).
- Check whether the value below is already present, or add it at the beginning if necessary (make sure you get all of this, including the trailing semicolon, with no spaces):
%JAVA_HOME%\bin; - Click OK repeatedly (likely in 3 different dialogs) until all the dialogs close.
- JAVA_HOME:
- Open a terminal prompt, type the below, and press Enter
javac -version - You should get a message that tells you the version. If the command is not found, you did something wrong.
- Close the terminal prompt. You’re done installing Java
Install Eclipse 2020-03 (or later) for Enterprise Java Developers (Windows OS - 64 bit only)
(Later or earlier editions should work fine. NOTE: You need at lease the 2018-12 edition for full Java 11 support, so don’t use an earlier one if using Java 11.)
- Download Eclipse. If you have problems with a direct link, follow the instructions below:
- Go to https://www.eclipse.org/downloads/packages/release/2020-03/r
- Look for the heading “Eclipse IDE 2020-03 R Packages” and the download areas below it. This is below the top banner on the page. Do NOT use the Download button in the banner.
- Find the section for “Eclipse IDE for Enterprise Java Developers”
- Click the link next to Windows 64 bit.
- For Windows (64 bit only) the file will have a name like eclipse-jee-2020-03-R-incubation-win32-x86_64.zip
- Extract:
- Unzip the file - Can extract to C:\, or other convenient location (as long as you remember it and can access it).
- Test
- Execute the program (double click on the eclipse.exe executable, or a shortcut for it).
- Accept the default workspace, and let it load.
- Quit Eclipse.
- That’s it. You’re done installing Eclipse.
Install Tomcat 9.0
- Download Tomcat. From https://tomcat.apache.org/download-90.cgi, go to the Binary distributions section for Tomcat 9.0 and download the zip file.
- Go to the link with label zip: in the section labeled Core:
- The filename will be something like apache-tomcat-9.0.35.zip
- Save the file where you can access it easily.
- Extract the zip file where you can access and run it easily:
- Windows OS: Common location is C:\
- Mac OS: Common location is user home directory.
- That’s all that needs to be done to install Tomcat.