SPRING FRAMEWORK COMPONENT INSTALLATION IN WINDOWS

Before I outline the tools needed to use Spring Framework on Windows I will summarize the features of my development machine; you will see why shortly. I am working on a MacOS Sonoma 14.1 computer Apple M2 chip ARM 64 architecture. Through Parallel Desktop for Mac Standard edition I virtualized two environments, Windows 11 Professional and Ubuntu Linux 22-04 LTS.
Unfortunately, SQL Server Express 2022 and Sql Server Management Studio (SSMS) are not supported on this architecture. Because of this, I will not be able to show you installations of these two components. If you are not bound to this architecture these are the links.

However I will leave you as a downloadable resource the SQL Server backup file (.bak file) containing the project database, also always as a downloadable resource I will make available to you the Web App useful for testing the installed components. Let’s start with the Java JDK.

JDK INSTALLATION

Let’s go with our browser to https://www.oracle.com/it/java/technologies/downloads/ for Windows select the x64 MSI Installer file and download it. We wait for the download to complete then proceed to install and configure the JDK.

JDK

Go to the Download folder, double-click the downloaded file, and install the JDK. Once installed we need to configure the environment variable. I am using Windows 11. On the text box we type environment variables. The following video illustrates the procedure on Windows 11.

INSTALLATION OF MAVEN

Another tool we will need to operate in this course is Maven. Maven allows us to compile our projects and install all the dependencies we will need. Go to the page https://maven.apache.org/ click on download and download the binary file in zipper format. Once the file is downloaded create a folder under drive C, I called it Maven and copy the downloaded file. At this point as with the JDK we need to configure two environment variables, the one for the Maven Path bin and the JAVA_HOME variable. Once this is done, open the terminal as administrator and type the following command:

mvn -v

The following video explains the whole procedure.

INSTALLATION OF TOMCAT

Another element we need is Tomcat, a widely used and very popular Web Server. It allows us to run our applications created with Spring MVC. Go to the following address with your browser:

https://tomcat.apache.org/download-90.cgi

Go to the binary section and download the 64-bit zipper format file. As done earlier create a folder under root C, I called it Tomcat and copy the contents of the extracted file into it. Go to the bin folder and click on the batch file startup. The web server will be started; if you type in the browser http://localhost:8080 you will see the Tomcat page. Type Ctrl-C on the terminal to shut down the web server or better yet the batch command shutdown.bat.

INSTALLATION OF SPRING TOOL SUITE

Go with your browser to the following address: https://spring.io/tools go to the Spring Tool 4 for Eclipse section and download the file for Windows. Once you have downloaded the file, which is a self-extracting jar, copy it under the C disk and, if you have properly installed Java, click open. It will extract the archive and create a folder with the executable inside to run. Click on the SpringToolSuite4.exe file the program will be launched. Choose a workspace you can also leave the one that the default program offers you that has the current user’s document folder as a path. Once the program is open we need to configure Tomcat. The following video illustrates the procedure. Once this is done, download the web project, open it with the development tool, and run it to see if it all works. Before testing the project, you must install the following software components from the Eclipse  Marketplace, which is located under the Help menu item.

  • Eclipse Enterprise Java and Web Developer Tools 3.31
  • Eclipse Web Developer Tools 3.31

DOWNLOAD SQL SERVER BACKUP

SQL SERVER BACKUP

DOWNLOAD WEB APP

WEB APP

THE JAVA LANGUAGE

THE JAVA LANGUAGE

LINKS TO PREVIOUS POSTS

SPRING FRAMEWORK