You can also edit Tomcat's Configuration files within Eclipse by selecting them from the Servers drop-down menu in Project Explorer, located on the left hand side of Eclipse's development view: Double-clicking on the server's name will call up a window in which you can edit basic information about the server: If you did everything correctly, a new Server will appear in the Server list. On the next screen, choose a local name for your new server, as well as a Server name, and click Finish. Secondary click inside the tab to open the New Server dialogue:
You can do this in the "Server" tab, located in the lower half of Eclipse's development screen by default. Now that you've created a Tomcat-aware project, you still need to define a Tomcat server for the project to use. Congratulations - you've created your first Tomcat-integrated Eclipse project. Click "Next", and Eclipse will ask you to locate your installation of Tomcat:Ĭlick "Finish", configure any additional options you like on the New Dynamic Web Project dialogue screen, click "Finish" one more time, and you're done. If you want to create a new local server for your project, check the box below the list of server runtimes. For this example, we'll be using Tomcat 6. Open the Apache folder, and select the version of Tomcat you've installed on your system. Click "New." to pull up the following dialogue: What we're concerned with is the "Target runtime" box. This dialogue should be familiar to you if you have used Eclipse before.
Eclipse will present you with this dialogue window: Start clicking "File->New" and selecting "Dynamic Web Project" from the list of options. Now that you've installed the WTP, it's time to start using Tomcat with Eclipse. It'll only take a few seconds, and when Eclipse starts up again, you'll be almost ready to start using Tomcat with Eclipse! Creating your first Tomcat-integrated Eclipse project
If you get any dialogues about installing unsigned content, don't worry - just click "OK".Īt the end of the install process, Eclipse will give you the option to either restart, or apply the changes without restarting. This process will take some time, so get up and go for a stroll. Once you click the "Finish" button, Eclipse will begin downloading the components and installing them: Click the radio button in the lower right hand corner of the screen, indicating that you accept the licensing terms for the components that you are about to install (you only need to do this once), and the "Finish" button will become active. Click "Next" again to reach the page "Review Licenses".
You can review them if you want, but it's not necessary. Eclipse will fetch a list of components to be installed, and present them to you. In this tutorial, we'll use version 3.x:Ĭlick "Next". Next, select the latest version of the WTP SDK from the list of projects. This will call up the dialog pictured below:Ĭlick the "Work with:" drop down menu, and select the WTP Project site from the list: To install WTP, select the "Install New Software." menu item from the Eclipse "Help" menu.
Although you can download WTP as a ZIP file, it's quite easy to install from within Eclipse, and this is the method we'll use in this tutorial. Step one - Installing the eclipse web tools platformĮclipse uses a set of components called the Web Tools Platform, or WTP, to integrate application servers into the Eclipse environment. And to make your Apache Tomcat environment enterprise ready, learn more about Tcat, the leading enterprise Apache Tomcat application server. If you need more information on installing these items, visit the Eclipse and Apache Tomcat documentation pages.