Folders showing up as packages in Eclipse

Viewed 122

So I'm using the Eclipse IDE for Java to work on exercises and store examples from my Java How to Program book. I organize them with folders for each chapter being inside the src folder, but the folders are automatically turned into packages. How can I make them just normal folders?

Folder structure

1 Answers

You need to change the directory properties: Right click on the "java_how_to_program_e11" and select "Properties" for the project. In the search bar type "source" and select "Java Build P...". In the resulting "Java Build Path Properties" view ... you can remove the directories from being a "source" directory. In the same properties view, you can add the subdirectores under each of the chapters as a source directory by clicking "Add Folder".

Related