After you completed Java and Database environment set up, you need to set a Web application server (AP server) to run Java server side programs.
This time, we will use an AP server, Tomcat.
Tomcat is an open source product that provides functions without any charge and very popular as a Web application server which has ‘Servlet/JSP container’.
Tomcat’s full name is Apache Tomcat.
Installation of Tomcat
From now, let’s install Tomcat.
At first, download Tomcat from the following site.
On this website, select ‘Tomcat8’ from ‘Download’.
Set up Tomcat
Next, you need to set up Eclipse.
Run your eclipse that you have already set up.
Select ‘Window’ in menu => ‘Open perspective’ => ‘Other’.
Select ‘Apache Tomcat v8.0’ in ‘Apache’ folder and click ‘Next’ button.
This time, because you will use the downloaded Tomcat whose version is 8, choose ‘apache-tomecat-8.0.46’ of ‘Applications>Tomcat’ folder and click ‘OK’ button.
This following image is selecting ‘Java SE 8 [1.8.0_144]’.
The selection is over, press the ‘Finish’ button.
Set up JDBC driver for MySQL
After Server setting, you need to set a JDBC driver to connect to database in your Web application.
Download the following link by clicking to download a necessary jar file.
Select ‘tomcat’=>’apache-tomcat-8.0.46’=>’lib’ in ‘Applications’ folder and save the downloaded file ‘mysql-connector-java-5.1.10-bin.jar’.
You have completed JDBC driver setting.
Tomcat set up is complete.