Environment Setup
Building a client-server application using Java requires you to download a set of tools that help you in the process. Here is the list of software packages that you need:
Download Java 11 or higher JDK
The first step is to download JDK version 11 or higher. Follow the link given below to get the JDK installed on your computer.
https://www.oracle.com/java/technologies/downloads/#java11
Download Eclipse EE IDE
Soon after the JDK is installed, you can download the Eclipse Integrated Development Environment (IDE) by following the download link below:
https://www.eclipse.org/downloads/packages/
Follow the prompts while installing and choose the EE version when the screen below is shown.

Download Tomcat Web Server
Next, download Tomcat Web Server version 9, which is the latest version supported by Eclipse EE as of this writing. The link to download is given below. Choose the core distribution based on your operating system.
https://tomcat.apache.org/download-90.cgi
Once downloaded, unzipping the package is all that is needed. Your Tomcat server is ready once the zip file is extracted. You can now move this folder to your Applications folder or any other folder you typically use for applications.
Creating a New Web-App Project
Now open the Eclipse application. This will open the Welcome page shown below.

This welcome page provides an overview of all the features available in Eclipse. It is a good idea to follow some of the tutorials and explore the other resources provided. Once you have a bird's-eye view of the available resources, close this page by clicking the 'x' in the top navigation bar.
Once this page is closed, you will see the option to create many different types of projects. Choose 'Create a Dynamic Web Project.'

This will take you through a series of steps, as shown below:
Add a name for your project

Choose Target Runtime
Since we want to deploy this Dynamic Web Project to a Tomcat web server, we will configure that next.

Select Tomcat 9 runtime as that is what was downloaded.

Once you choose Tomcat 9, it will automatically take you to the next set of screens.
Pointing to Tomcat Installation Folder
Once you have downloaded all the necessary software, the final step is to provide the path to the Tomcat installation in Eclipse so you can deploy your web app on it.

Once the folder is selected, you will see that the Target runtime is set to Tomcat 9.0.

Finish Project Setup
Once Tomcat is configured as the server for your Dynamic Web Project, select 'finish' to complete the project setup.

Setup Maven Build System
While the steps above help you start a JEE project on your local computer, tools like Maven or Gradle are typically used to build and package your project for deployment in external environments like testing and production.
We will use Maven in our project. Please download and install Maven by following the link below:
https://maven.apache.org/install.html
MySQL Download
Next, you can download an RDBMS like MySQL to eventually build an end-to-end application. Here is the download link.
For Windows OS
It is best to install MySQL through the installer software by visiting this link: https://dev.mysql.com/downloads/installer/
For Windows, follow these additional instructions: https://dev.mysql.com/doc/refman/8.0/en/windows-installation.html
** For MacOS**
https://dev.mysql.com/doc/mysql-osx-excerpt/5.7/en/osx-installation.html Once installed, you can start your MySQL server using the preference pane: https://dev.mysql.com/doc/mysql-osx-excerpt/5.7/en/osx-installation-prefpane.html
In both operating systems, optionally, you can also install Workbench. Workbench provides a visual interface for working with the database: https://dev.mysql.com/downloads/workbench/
Change Password for root user of MySQL
Open the MySQL command prompt.
In macOS, you can open the MySQL prompt by navigating to /usr/local/mysql/bin/ and then running the following command.
In Windows, MySQL is installed by default at:
C:\Program Files\MySQL\MySQL Server x.x\bin
The bin folder contains all the executables for managing the MySQL database.
Now to change the password, invoke the below command:
./mysql -u root -p
If the command runs successfully, it will prompt you for a password. Enter the password. Note: -u stands for username. If you have a different username, use it instead of root.
You will then be in the MySQL console, and you will see the mysql> prompt.
Now you can change the password for the 'root' user by invoking the below command:
ALTER USER 'root'@localhost IDENTIFIED BY 'newPass';
Find MySQL version
Use the mysql command with -V as shown below:
mysql -V
Git Download
Finally, we will install the Git version control system. A version control system helps you collaborate with other developers on a coding project.
Here is the link for the download: https://git-scm.com/downloads
More on Git: https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control