Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regard creating a Java project in Eclipse

Tags:

java

eclipse

In the “create a Java project” wizard. For the “project layout”, there are two choices: 1) use project folder as root for sources and class files. 2) Create separate folders for source and class files Which one should I choose? For the “Working set” Whether I need to check the “Add project to working set”? What does it mean?

like image 637
user785099 Avatar asked Jun 05 '11 20:06

user785099


2 Answers

I always choose Create separate folders for source and class files, it's just separate your src files and your output files

like image 117
Roee84 Avatar answered Oct 13 '22 00:10

Roee84


The one you choose is up to you. It doesn't matter one way or another, at least as far as your tools are concerned.

The first option means that all files will be in the root directory of the project (typically PATH_TO_WORKSPACE/projectName). Your .java and .class files will be here if you choose that option. The second option will create PATH_TO_WORKSPACE/projectName/bin and PATH_TO_WORKSPACE/projectName/src. Your source files will be in /src and your compiled files will be put into /bin.

My personal preference is to not use the project folder as the root for sources and class files and to create separate folders for source and class files. However, it's all up to you.

like image 26
Thomas Owens Avatar answered Oct 13 '22 00:10

Thomas Owens