Eclipse help
Eclipse help
Contents
1. Adding Java EE perspective
2. Local Tomcat setup
- Shruthi Desai
1
ECLIPSE HELP DOCUMENT
Java EE perspective is required in Eclipse to support web based projects and provide respective tools.
Check in your Eclipse if you have this perspective, if not here’s how to do it.
Check:
In Eclipse Click on Window> Perspective> Open perspective> Other
Look for Java EE. If you do not find one, follow the below steps
Steps:
1. Click on Help>Install new software it opens a window as below.
2. Select “Oxygen - http://download.eclipse.org/releases/oxygen” in Work With field (because my
Eclipse is Oxygen)
3. Check “Web, XML, Java EE and OSGi Enterprise Development”
4. Click on Next , accept the terms and conditions and Finish the installation
5. Restart your Eclipse and you should be able to see Java EE perspective in your Eclipse(see Check)
2
ECLIPSE HELP DOCUMENT
Steps:
1. Download required version of Tomcat server from http://tomcat.apache.org/ appropriate for
your machine(in this example v8.5). Unzip and place it in a folder as required.
3
ECLIPSE HELP DOCUMENT
2. In Eclipse right click in package explorer and select New>Other to get a new window and select
Server (NOTE: you will get the Server option, provided your eclipse has web tools support, if you
don’t see this option, install Java EE perspective)
4
ECLIPSE HELP DOCUMENT
3. Click next and select Apache and the version of Tomcat, here 8.5
4. Click Next and give a name to the server and browse and point to the Tomcat folder that was
downloaded and Finish the installation.
5
ECLIPSE HELP DOCUMENT
5. You will see a Servers as a project in package explorer. Click on Window> Show View >Other and
select Servers to see the server console
6. Double click on server in Server console to open the server configuration. Necessary
configurations can be done, e.g. change the port number for localhost here and save
6
ECLIPSE HELP DOCUMENT
7. Deploying the web project on Tomcat. Right click on tomcat server and select Add and Remove.
8. Select the web project you want to deploy and click Add and Finish. The project is now added.
Start the server by doing a right click on the server and click Start. Project is now deployed
(NOTE: you can also debug on the server by clicking debug, instead of Start)