Tagged: #eclipse

How to convert a maven project to a non-maven project in Eclipse

Eclipse doesn’t provide a direct way to convert a Maven web project to a non-maven structure. In this tutorial, we provide an easy 2-steps way to do this. 1- Generate war file Suppose we have an existing maven web project with the following structure: In order to convert the above project to a non-maven structure, the first thing to do...

How to change the default deploy directory of Tomcat in Eclipse

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”...

How to change the default deploy path of web resources in Eclipse

When developing a web application in eclipse, the default deploy path of java classes is “WEB-INF/classes” and every folder defined under WebContent is automatically deployed under the root path of the application. 1- Custom deployment path In order to set a custom deployment path for your resources in Eclipse, you can do the following: Right-click the web project -> properties Select Deployment...

Top 15 Eclipse Keyboard Shortcuts for Java Developers

This tutorial shows the most commonly used keyboard shortcuts while developing a Java application using Eclipse IDE. Top 15 Eclipse shortcuts 1- CTRL-SHIFT-R: used to look for a specific resource in the work space, the resource could be (java class, XML, HTML, JS, .properties …etc). It’s allowed to use * in the search box if you’re not sure about the...

How to create a web project using Maven in Eclipse

In this tutorial, we provide a step-by-step guide on how to create a web project using Maven in Eclipse. Prerequisites: Eclipse IDE (Mars release) Java 1.8 Apache tomcat 8 1. Step-1 Open eclipse, then select File -> New -> Maven Project. 2. Step-2 In the next screen, select the workspace of the project and keep the other options as default then...

How to setup Tomcat in Eclipse

In this tutorial, we provide a step-by-step guide on how to setup and configure Tomcat in Eclipse. Prerequisites: Eclipse IDE (Mars release) Java 1.8 Step-1 Download and install Apache Tomcat 8 using this tutorial. Step-2 Open eclipse, Window -> Show View -> Other -> Servers Click “OK”. Step-3 Inside Servers view, right click -> New -> Server -> Tomcat v8.0...

Web service project structure

In this article we introduce the most common way for structuring a maintainable web service, our example can be used as a template for creating any web service using object oriented language. The important factor when structuring an application is to divide it into several modules/components and to define how these components interact between each other. The following example is about a java...