Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse change project files location

Tags:

eclipse

I have an Eclipse project (Flex Builder) of which the actual files have changed location on the drive. When I start Eclipse I can see the project listed but there are no actual files listed. Right clicking the project and selecting properties will show me the old path where the files used to be stored but I can't change it.

How can I change the file location of an Eclipse project where it will look for the files after the project has been created?

like image 398
Luke Avatar asked Sep 16 '09 03:09

Luke


People also ask

Can I move Eclipse workspace to another folder?

Close Eclipse. Open the location of the workspace and cut paste the entire directory (which contains the ". metadata" directory into the intended location. Restart Eclipse with newly copied folder as the workspace (parent directory of ".

Where are Eclipse project files stored?

- [Voiceover] When we first installed Eclipse, and we launched it for the first time, do you remember the prompt that it asked you where you wanted to store your files? It automatically defaults to the C drive, to users, your username, and it creates a folder called Workspace. That's where your files are located.


2 Answers

You can copy your .classpath and .project files to the root of the new project directory and then choose 'Import...' from the file menu, and select 'General/Existing Projects into Workspace.' In the resulting dialog, locate the root of the new project directory and finish. Make sure that you have deleted the old project from the work space before importing.

like image 165
akf Avatar answered Nov 13 '22 10:11

akf


Much more simple: Right click -> Refactor -> Move.

like image 37
kerner1000 Avatar answered Nov 13 '22 09:11

kerner1000