Andrew Kor
Andrew Kor

Reputation: 603

Why do projects that I add to my 'workspace' folder don't show up? [ECLIPSE]

I am using Eclipse Indigo, and after having successfully extracted my project folder into my Eclipse workspace, it does not show up in the package explorer. I tried refreshing eclipse and restarting it, to no avail. I am 100% certain my eclipse is using the right directory and the project is in it.

What could be the problem? Thank you.

EDIT: "import projects into workspace" worked for me, but why was that necessary?

Upvotes: 0

Views: 768

Answers (2)

E-Riz
E-Riz

Reputation: 32905

To answer the question, "why is it necessary to import?" you have to realize that the Eclipse workspace is just a logical container for projects, not necessarily the physical container for them.

Also realize that a directory of project-related files does not make an Eclipse Project; Eclipse must be given or generate it's own set of configuration in order to understand a project (minimally, for Java projects, .project and .classpath). Without those, Eclipse has no idea what to do with an arbitrary folder that you call a "project." That's what the Import or Create Project wizards are doing under the covers, generating those config files.

Upvotes: 1

ergonaut
ergonaut

Reputation: 7057

Files in the directory are not automatically picked up by the package explorer. You need to import them.

Try using the File > import, then choose

Existing Projects into workspace.

There is a checkbox that says "Copy projects into workspace" which copies it to your workspace if it happens to be in a different folder. If you start with your files in another folder, you'll see how it's copied and set up with configuration files in your workspace directory.

Upvotes: 2

Related Questions