The following steps apply if you want to set up and run a Tomcat server from within Eclipse. If you are using a different version of Eclipse, the steps may be slightly different.
- In Eclipse, choose Window -> Open Perspective -> Other.
- In the Perspective dialog, select J2EE and click OK.
- Click the Servers tab.
- Choose File -> New -> Other. The New dialog is displayed.
- In the list of wizards, select Server -> Server and click Next.
- In the server type list, expand Apache and select your Tomcat server version. Then click Next.
- Click Browse and locate the directory where your Tomcat server is installed.
- Click Installed JREs.
- Click Add. The Add JRE dialog is displayed.
- In the list of JRE types, select Standard VM.
- Click the Directory button next to JRE home and locate the directory of the JDK where the JAI library was installed.
- Enter a name in the JRE name box.
- In the Default VM Arguments box, enter the following:
- Click Finish. The Add JRE dialog is closed.
- In the list of installed JREs, select the JRE you just created. Then click OK.
- Click Next.
- Click Add All.
- Click Finish. The New dialog is closed.
- In the Servers tab, double-click the server you just created. The server's Overview tab is displayed.
- Expand Timeouts, set Start to 120 and set Stop to 60.
- Under Server Locations, make sure Use workspace metadata is selected.
- Choose File -> Save.
Labels:
None