How to create a project from existing source in Eclipse and then find it?

Easiest Method:

  1. Put all source files into one directory named after your project. i.e. "ProjectName" You can keep this directory in your workspace or it can be somewhere else.
  2. Start a new project in eclipse and name it using that same project name.
  3. Uncheck the "use default location" box and find the directory where your project is. If your project is already in the workspace, you probably won't have to change the default location.
  4. Click 'next'.

Eclipse should be smart enough to figure out what's going on. After clicking next, it will show you all of the files it found in that directory. It will just automatically add those files to your project. Voilà!

Try File/New/Project
Select type of project, Next
Type in project name
uncheck default location
In Location edit box type in the path to your source
click Finish

原文地址:https://www.cnblogs.com/shaman/p/2972604.html