Skip to content

Getting Started Part 3: A Beginner's Eclipse Project

Laurent Hasson edited this page Nov 30, 2019 · 4 revisions
Previous Main Next
<-- Part 2 Main Part 4 -->

Different organizations have different standards in how they set up their Java-based projects.

  • We like to set up a base-line project where dependencies and environment configurations are set up and inherited from other projects where application code lives
  • The application will be composed of a few JARs and a really basic Web application
  • If you are a seasoned developer, then you might want to skim through this section very quickly to get set up. This is really targeted at beginners, younger new employees and so on…

After you have installed the baseline stack and fired up Eclipse, you are presented with a default workspace.

We want to apply some simple customizations to get started. These are highly personal, but you might find some of the suggestions below useful:

  • I have never found a use for the Task List and Outline views, so i prefer to remove them and maximize the screen real estate for the editor.
  • The “Project Explorer” is nice, but I also like the “Navigator” as it gives you a view of projects that mirrors more closely the actual file system layout.
  • The “Console” view will be critical for us as we use many command-line utilities
  • Eclipse supports perspectives where you can customize the views you want. I have found this to not be as useful and like for example to have the “debugger” view in the main perspective
  • We’ll configure Tomcat and so we also need the “Servers” view.

For the Views in your workspace, you can add new views via the “Window” menu, select “other…” to find the other views we like, and then drag and drop your views according to taste.

You then get this:

Next, create a "root" project, i.e., a project with your main dependencies that actual application projects will depend on. This helps centralize dependency maintenance and other general configurations of your environment. Right-click in the Navigator.

Set the project's name to “RootProject”, set the root path to C:\Projects\TildaTutorial for example, and disable the module-info.java file.

Export the JRE.

Don’t switch perspective. This is a personal thing and i prefer to work out of a single perspective, but your mileage may obviously vary.

You should then see the Root project in the Navigator (or the Project Explorer).

Previous Main Next
<-- Part 2 Main Part 4 -->
Clone this wiki locally