Search This Blog

Loading...

Thursday, January 1, 2009

Open Existing Project in Eclipse

Opening existing project in Eclipse is not as straightforward as in Visual Studio, becuase Eclipse treats project on folder basis, and there is no project file as far as it is concerned, unlike Visual Studio, so one can't click on a project file to open all the files that are located inside a folder.

This creates a problem if your website is never a part of the Eclipse workspace and now you want to work on it in Eclipse.

In order to solve this problem you first have to bring in the project into your Eclipse workspace.

Here are the step-by-step instructions on how to do it.

First, you click on File->New-> PhP Project, Or any other project such as Python or Perl. You will have to manually tell Eclipse that you are going to work on this project by creating a new Eclipse Project in the Explorer.

Then, you have to go to File->Import, and choose the File System option:
Select the directory where your files are located and the input Folder, which is phpTestImport in this case:

Click Finish, and the file is imported!

And now you can do your editing in Eclipse!

Troublesome? I think so.

39 comments:

Anonymous said...

thanks a lot for this :)

Anonymous said...

gr8 help for beginners to eclipse like me
was eagerly searching for this

Yauhen Yakimovich said...

well, there exists completely alternative solution, nonetheless - fully compatible with common sense.

Assuming you are under linux and your eclipse workspace path is default.

>cd ~/workspace
>ln -s <full_path_to_external_project>

(exchange <full_path_to_external_project> with your own)

Now create a new project in eclipse with the same name as your new symlink. That's it.

For professional windows guru the use of junction is hirely recommended.

Anonymous said...

thanks !!

nisim761 said...

in eclipse java EE (the first link to download on the eclipse website), i don't have the option of creating a php \ phyton \ perl project..

Anonymous said...

On my project type (Nios II), creating a new project takes several minutes. This is my first day using eclipse, and I have to say, it freaking sucks because of this. I'd rather use visual studio, and I haven't said that about any IDE in my life (and I never thought I would).

Anonymous said...

Yeah, Eclipse really sucks.

Anonymous said...

Thank you so much for this, really helped me :)

Anonymous said...

heyy
thanks a lot!
u saved a lot of my time i would have been struggling for it!
:)

naith_kk said...

just a question, how do i import an existing xampp joomla site into eclipse on the same directory? this method shows importing files so do i have to set the workspace on the level below the directory for this to work? or is there another method of importing?

moldrien said...

Thanks a lot for this. It seems that there is a (weird) way to open an existing project, but I still have a question, what is the utility of Main menu -> project -> open project option? I always have it in grey (not accesible) mode.

Thanks again

moldrien said...

I answer myself:
The "Open project" option is to open a project that has been closed, BUT it's still visible in the project explorer area.
Quite uncommon use of words that causes confussion, in my humble opinion.

Regards

Santi said...

hi, now it's very easy:

File->Import->General->Existing Projects into Workspace

And select the root folder where is the project, and OK!

bye,

mr.j05hua said...

all you have to do is copy your old projects into your new project folder then in the eclipse project explorer pane, right click and choose import, the wizard will bring up a menu, you pick existing projects, then locate the main folder and click finish. it will open right up with all files there

James said...

Nice post. I had the same doubt. I found my answer here http://thetechdown.blogspot.com/2011/05/opening-existing-java-projects-in.html

Anonymous said...

thanks

Anonymous said...

Thanks

Mahendran said...

I have my project in workspace itself
When I import it shows folder already in hierarchy. Is that any other way then moving project outside workspace and get it back.

amit said...

Hi all

This is stupid, why not move the project away from workspace and import again.

Is is difficult to cut paste???

lolll

Anonymous said...

thanks a lot dude..

Anonymous said...

thanks!

Anonymous said...

Thanks man

Anonymous said...

Great point regarding Eclipse vs. Visual Studio. I work in C# and now on an Android project I am thinking how come this project will not open.... now I know. Thanks!

WindowsPistha said...

Thanks SANTI !
It worked for me.

JiaJing WANG said...

Thanks!

Anonymous said...

We absolutely love your blog and find nearly all of your post's to be exactly I'm looking for.
Would you offer guest writers to write content to suit your needs?
I wouldn't mind writing a post or elaborating on many of the subjects you write related to here. Again, awesome site!

My homepage :: Http://Www.Velocityville.com/uprofile.php?UID=2383

Anonymous said...

Hey There. I found your weblog the use of msn. That
is a really smartly written article. I'll be sure to bookmark it and come back to learn more of your helpful information. Thanks for the post. I will certainly comeback.

Here is my blog post cedar finance binary

Anonymous said...

Hello there, just became alert to your blog through Google,
and found that it's truly informative. I am gonna watch out for brussels. I'll be grateful if you
continue this in future. A lot of people will be benefited
from your writing. Cheers!

Here is my web site http://www.youtube.com/watch?v=fCkK9-pzu_o

Anonymous said...

This blog was... how do I say it? Relevant!! Finally I have found something that helped me.
Thanks a lot!

Take a look at my web-site ... http://www.youtube.com/watch?v=jLuC1nG5cPk

Anonymous said...

Hello, Neat post. There is an issue along
with your website in web explorer, would check this? IE still is the
marketplace chief and a huge section of people will leave out
your wonderful writing because of this problem.


Have a look at my web site :: make money online

Anonymous said...

Information that informs the public and makes them good citizens is
the kind of quality information that one can be proud to call
news, and if it ever goes completely out of style, may
the Lord help us, for it will be the end of civilization as we know it.
" Earlier today some cruise ship struck land in Alaska. Thus they can choose from the many available sources.

Feel free to visit my homepage: http://themagicmoonlight.com

Anonymous said...

This is my first time visit at here and i am really happy
to read everthing at alone place.

Here is my homepage; User:Richelle8 - Thfwiki

Anonymous said...

They do not insert secret or additional advertising in our material.

It's almost always easy to make a joke about the way a cat ends up lying down or sitting. Use old fabric to create puppets, monsters, and any other creatures that your child can imagine.

Here is my weblog Find Out More

Anonymous said...

Of course, one of the reasons why this area of Ohio has remained so persistently branded as a pocket of joblessness is its failure to recover from the death of the steel industry
and also because of automotive production lines outsourced to foreign lands.
The ultimate online news source that covers news, travel, money, sports, life, technology and weather.
Above all the Hindi news websites is a real boom for the world.


my web blog - Latest Daily News

Anonymous said...

Hi! Ι'm at work surfing around your blog from my new iphone! Just wanted to say I love reading your blog and look forward to all your posts! Keep up the superb work!

my web-site tetris Battle hack,

Anonymous said...

Nice blog here! Also your site loads up fast! What host are you
using? Can I get your affiliate link to your host?
I wish my web site loaded up as fast as yours lol

Have a look at my site: vacature hotel arnhem

Anonymous said...

NouvelleZlande.The kit displayed is a full kit for future repairs, but you can do is go to your local electronics supplier and ask what they got for a through hole quick repair. [url=http://vuittonbagssale.webnode.jp]ヴィトン バッグ[/url] ws Sentinel .ODYEK AGONA (Ouganda) a regrett? [url=http://www.findbestmulberryuk.co.uk]Mulberry outlet[/url] RAJAT SAHA (Inde) s'est associ?God is present in a child's laughter, and the rustling of leaves on a tree, and a bird in flight, and the love expressed by one human being or animal to another. [url=http://www.findbestmulberryuk.co.uk]mulberry outlet uk[/url] This seems obvious to stay away from.Certains des clients qui faisaient la file mardi dans un magasin Soriana de la priphrie de Mexico ont affirm que les cartes leur avaient t offertes en change de leur appui au Parti rvolutionnaire institutionnel (PRI), dont le candidat Enrique Pea Nieto a remport l'lection de dimanche, selon les rsultats prliminaires officiels. [url=http://soldeslongchampssac.webnode.fr]longchamps pas cher[/url] Nigeria.Dec. [url=http://louisvuittonpurse1.webnode.jp]louisvuittonpurse1.webnode.jp[/url] Nigeria.Maintenant que nous avons attir votre curiosit, nous souhaitons que vous effectuez quelques recherches sur le Bhoutan.[url=http://www.findbestmulberryuk.co.uk]Mulberry outlet[/url] Homeowners also have several membership opportunities to join the Golf Club, ranked in Golfweek's 100 Best Residential Golf Courses in the country for the 8th consecutive year, and the Tarpon Club, which offers a beach and boating lifestyle.Qatar. [url=http://www.mulberryoutletukhome.com]mulberry outlet store[/url] Slovnie.Faustin Munene a donc souhait faire une mise point.

Anonymous said...

Hello there I am so happy I found your site,
I really found you by accident, while I was researching on
Bing for something else, Anyways I am here
now and would just like to say thanks for a incredible post and a all round
thrilling blog (I also love the theme/design), I don't have time to read through it all at the moment but I have book-marked it and also added your RSS feeds, so when I have time I will be back to read more, Please do keep up the awesome job.

my website pirater Un compte Facebook

Anonymous said...

You should be a part of a contest for one of the best sites on
the web. I am going to recommend this site!

My web blog - Psn Code Generator