Create a new Java project by using the New Project Wizard. We’ll call this Project [MyProject] but this for sure is just an uninspired proposal and you can call it whatever you like. After entering the projects name click on the Finish button and let the wizard generate the basic project settings for you.
Now the new project appears in your workbench and we want to create the default project layout manually. It is highly recommended to use a folder structure that is a close as possible to the proposed one, as this guarantees that every Projector user will know this structure if he is installing an application and will feel familiar.
First we need to create the source folder that will contain all the custom java classes that we develop in our project. Right-click on the project folder and select new -> source folder. Let’s call this folder java as it will contain the java source code.
We need another folder that will contain all the projects content like templates, images and so on. Create this folder by selecting new -> folder and enter content as the folders name.
Now create the subfolders in the content folder that represent the default project structure. Finally your folder structure should look like this:
The classes folder will contain the compiled java classes so it is needed to set this folder as the project’s default output folder. This can be done by selecting the Java Build Path entry in the project properties dialog and selecting this folder as the default output folder.