How to change the default deploy directory of Tomcat in Eclipse
ADVERTISEMENT
Table of Contents
Introduction
By default, web applications are deployed under this path: “WORKSPACE/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps” .
Here below we define the needed steps to change the default deploy directory of Tomcat in Eclipse.
1- Custom Deploy Directory
Follow the steps below to change the default deploy directory of Tomcat in Eclipse.
- Open servers view
- Double-click on tomcat server, the following overview tab is opened:
- Select “use custom location” radio button in the “Server Locations” section and set your custom deploy path.
If “Server Locations” section is disabled, follow the steps below to enable it:
- Right-click tomcat server -> Properties
- Then click on “Switch Location” button as the following:
Summary
Here below we define the needed steps to change the default deploy directory of Tomcat in Eclipse.
Next Steps
If you're interested in learning more about the basics of Java, coding, and software development, check out our Coding Essentials Guidebook for Developers, where we cover the essential languages, concepts, and tools that you'll need to become a professional developer.
Thanks and happy coding! We hope you enjoyed this article. If you have any questions or comments, feel free to reach out to jacob@initialcommit.io.
Final Notes
Recommended product: Coding Essentials Guidebook for Developers