Accepted answer

in the new java project wizard, uncheck the checkbox that says use default location and the use the browse button to find your directory.


use "import - existing projects into workspace". this works for my case.


right click on a project -> properties. open project location in explorer, there's a little icon next to path. put your folder/file structure in there and refresh the project in eclipse.


i just created a pom.xml by hand and imported the project as an existing maven project in eclipse. it even works for nested projects without problems.


you know, it is not so simple question. depending on your project type (jar, web module, ear and so on) different structure and configuration files are used by eclipse. so the first really interesting question is that what is your project type? the basic solution after it to create a new project, and define the directory of your source code as project root. then you will see what else to change (for example source path settings, classpath and so on). so how does your project look like? can you proide structure tree of folders?


since you are using django you should first set up pydev in eclipse. you can install it from the market. then you want to configure the pydev python interpreters to find your installation of django ( make sure to provide the explicit path to the django folder if your django is not installed in the default location.

once these things are ready you can select file > new > other, then select pydev django project from the pydev sub directory.

click next and here is the sweet part: uncheck 'use default' (as previously stated) and then find your django project directory. be sure to select the right project folder (ie: the folder that contains when you have the right folder selected eclipse/pydev will recognize that a project already exists and make mention that it will use those files. click finish.

then there is a db form that asks about your db settings. if you already have a file then this seems to make no changes (as it should not). so fill it in or don't. but this is the last step.

then you should be able to view and use your existing project in eclipse!


probably not the way most people would go about this, but i like all of my eclipse projects in one place but don't necessarily have my source in my workspace directory. maybe there is a built in way to "symlink" in eclipse, but i sometimes end up with the project folder in the workspace, with the "src" symlinked to the actual source directory somewhere totally different. that's my personal preference anyway. if you too are on a *nix machine a simple

ln -s /path/to/source src

will do from your project directory.


hope this link answers the original question of this thread.

creating linked resources

folders and files can be linked to locations in the file system outside of the project's location. these special folders and files are called linked resources.

to create a linked folder:

  1. in one of the navigation views, right-click the project or folder where you want to create the linked folder.

  2. from the pop-up menu, select command link new > folder.

  3. specify the name of the folder as it will appear in the workbench. this name can be different from the name of the folder in the file system.

  4. click advanced.

  5. check link to alternate location (linked folder).

  6. enter a file system path, or click browse to select a folder in the file system.

  7. click finish.


my method:

i clone this file to new project directory , and rename project-name to my project name, after that i import new files and directory from eclips

file name: .project ( use notepad for make this save as type to all files (*.*) and write file name like: .project )

<?xml version="1.0" encoding="utf-8"?>


it is pretty easy to do. go to file->new-> project. in the project wizard, choose the type of project you want and then be sure to unclick the 'use default location` checkbox. browse for your folder in the widget that then becomes enabled. click finish after that.

alternatively, you could create a brand new project workspace in a new location. then, assuming java as your project type, you can open up your project properties and add as a source folder your existing directory. to do this, use the 'link source' button on the java build path -> source tab of your project properties dialog.

Related Query

More Query from same tag