01 - Encapsulation Lab Assignment
01 - Encapsulation Lab Assignment
4.Installing maven
Go to maven download the zip file and create a folder in c drive as maven and extract the files
Go to environment variable settings and search for path and paste the path of maven till bin folder.
Open the command prompt and check the version of maven by using command mvn version
6. click the fork button and this project will be added to your github account.
10. Import the maven project using STS i.e File->maven-Existing Maven Project->Browse Java-
BookStore then the project would be loaded in to STS.
Installation
Before starting, make sure you install JDK 8 and Maven and tomcat 7. Follow the installation
Running tests in a Java Project is a two step process. First, open up a terminal window and cd into
your project directory. Then type the following command to install and run your project on a Tomcat
server:
As you move through the modules, you can run module-specific tests that are shown above
the tasks in each module.
In order to see your changes in a browser, make sure Tomcat is still running in your terminal,
and visit http://localhost:8080/books/list in a browser to see the app running.
Output: