It's not a secret anymore!
The moose likes IDEs, Version Control and other tools and the fly likes package explorer is blank. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "package explorer is blank." Watch "package explorer is blank." New topic

package explorer is blank.

Aditi Gandy
Ranch Hand

Joined: Apr 23, 2008
Posts: 37
Hello, I am new to Eclipse.
I have created 2 workspaces. one in D-drive-for test / trail purpose.
another one is in c:- for my project.

I have opened eclipse In D drive workspace, then added tomcat plug-in. plug in is working fine.
Later, clicked on switch workspace in File menu.

Now, in c: drive, my project package explorer is blank. But directory structure is there in the system.
why my package explorer is blank?
when i try to import from file->import->general->existing project, select the root directory of the project, it is showing error message as invalid project name. if it accepts, it is creating my project folder in another one,....going to infinite loop...

May i know what is the problem? how to view my prject in package explorer?

Anyone please help.

Thanks & Regards,
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

I didn't understand all that, but here's how it works:

1. The project explorer is NOT a filesystem explorer. It manages Eclipse projects in a workspace. The actual definitions of "Eclipse project in a workspace" is determined by the workspace metadata. Just placing a directory in the workspace directory won't do it.

Because of this, you don't want to import the project if it's already in the workspace directory. What you have to do is define the project directory as an Eclipse project. To do that, use the "New Project" menu option to create an Eclipse workspace project. If you give the project the same name as the project directory that you've added to the workspace directory, it will tell you so, but there are dialog options to let it know that that's OK.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: package explorer is blank.
It's not a secret anymore!