You are on page 1of 1

1.

Setup JDK
> window > preferences
> search with "installed JRE"
> choose same option > Add > Standard VM
> Next > choose JDK 8 Location
ex: C:\Program Files\Java\jdk1.8.0_171
> finish

2. Setup Server
> Window > show view > other > search "server"
> choose same > finish
> Right click on "server" area > new > server
> choose Apache Tomcat 8.5 > next > browse
> choose location:
ex:
C:\Program Files\Apache Software Foundation
\Tomcat 8.5
3. Create Maven Project
> file > new > Maven Project > next
> search 'webapp' > choose maven-archtype-webapp
> next > enter details:
example:
Group Id : org.sathyatech
ArtifactId: warehouse
version : 1.0
> finish

4. add dependencies and build plugins in pom.xml


[copy from document given]
*** also delete web.xml and index.jsp files

5. add server library to Project (build path)


> right click on project > build path
> Configure build path > Library Tab
> Add Library > server runtime
> choose Apache Tomcat > finish > Apply & close

6. Change Dynamic web module version to 3.1


> window > show view > navigator
> Goto navigrator > expand project
> .setting folder
> open XML file (file name is long)
> change details
java = 1.8
jst.web = 3.1
> save file
7. Update Maven Prject (Alt+F5)
8. Create AppInit.java,AppConfig.java
app.properties [copy from doc]

You might also like