The moose likes IDEs, Version Control and other tools and the fly likes Eclipse workspace and projects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse workspace and projects" Watch "Eclipse workspace and projects" New topic

Eclipse workspace and projects

Pat Farrell

Joined: Aug 11, 2007
Posts: 4659

Eclipse seems to want to force me to have a redundant layer of directories for my projects. I can't tell if I am doing something wrong, or if this is inevitable.

If I have a project in my sandbox, say "foobaz" then I have a directory structure that yields:

Its easy to tie the foobaz directory to a git repository, etc. When I used NetBeans, the sources, libs etc. would go directly under this, i.e.

Eclipse insists on adding a layer, also named foobaz, so I have

What am I doing wrong?

I don't to set "sandbox" as my workspace, since that directory is not under git/svn control, and I don't want to lose any .metadata and other magic files.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33132

Pat Farrell wrote:Eclipse insists on adding a layer, also named foobaz, so I have

I have /src at the top level of my projects. Try creating a brand new Java project in Eclipse making sure "create separate folders for sources and class files" is selected. This creates:

The manually create the /lib and /dist folders in it.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Eclipse workspace and projects
It's not a secret anymore!