Eclipse - Import an existing project? - eclipse

I have a project that I am trying to add to my workspace. But eclipse cannot detect a new project in the directory I am pointing to.
How can I let eclipse know that a specific directory contains a project?
My directory contains:
assets
libs
res
src
bin
gen
AndoridManijest.xml
proguard.cfg
project.properties

You just have to do a Import->Existing Project into Workspace, and then browse to the location where the .classpath and .project files exists for your project.

For the new versions of Eclipse, it is File > Import > General > Existing projects into workspace

Like this
Importing existing projects
You can use the Import Wizard to command link import an existing project into workspace.
From the main menu bar, select command link File > Import.... The Import wizard opens.
Select General > Existing Project into Workspace and click Next.
Choose either Select root directory or Select archive file and click the associated Browse to locate the directory or file containing the projects.
Under Projects select the project or projects which you would like to import.
Click Finish to start the import.

This solution is for eclipse
I had a similar problem when I was cloning repositories from bit bucket from the command line, it would clones into the local repository. So the above solution did not work because it would say that the files were already in the local repository.
The solution:
1. Window > Show View > other > Git repositories
2. Right Click on the git repository tab > import projects
3. navigate to the repository you want to put into eclipse
4. select the third option 'import as general project', if selecting this does not work then view other options and select the option that applies to you
5. finish

if you cannot import project like some above solution, you should create new project has name procject like which procject you want to import. Remember to put your import project into workstation.

Related

Import and run applications in Eclipse from folders

I'm trying to open files and run applications from folders that are not in the Package Explorer tab. I'm trying by using the File/Import/General/File System... I then select the folder, but the Finish button is still disabled!?
Is this not the correct way or is there a better way to open projects from other placeses than Package Explorer Tab?
Go to File>import>General - Select Existing project into workspace
Select project folder, uncheck copy project into workspace click finish. Note: Project must be a valid project.
You can only import a folder which contains Eclipse project specific files like .project etc. This way Eclipse knows it is a project.

Not finding libgdx projects to import them

I bought a new computer and installed Eclipse on it. After the ADT plugin finished downloading I tried to import my projects (composed of 4 sub-projects), but Eclipse doesn't see them!
I just click "import/general/import existing projects into workspace", select the folder containing the sub projects, hit the open button but Eclipse says "No projects found to import".
I'm using Eclipse Kepler and the projects files are directly taken from Eclipse Juno.
Eclipse need .project file to import the projects into workspace. what you can do is create a new project and copy the source and libraries into that project
Alternative method can be that create a new project and copy the .project file from that project to your project but make sure you edit the .project file and change the name of that project according to your project. read this for more information on .project file
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fproject_description_file.html
I will suggest you to use the First method .
Make sure that you've tried to:
Refresh everything
Searched for Nested Items
Go to (In the libg-gdx setup) Advanced >> Check Eclipse
And if that doesn't work, add a .project file into the folder manually

STS cannot import existing file system into workspace

I followed following steps.
Start STS (Starts with default project named "Servers" already created)
right click package explorer, click on import -> General -> File System
Select directory -> Click Select All
After this step, I should be able to import my directory into "workspace", instead STS "forces" me to import file system to existing project.
Also, if I try to create a folder into top level workspace, STS does not allow me to do that as well.
I need to be able to import the whole directory into the workspace not a project.
You can only import filesystems into existing projects and you can only create folders in existing projects. The top-level is only for projects.
What you need to do first is create a new project with an external location that is rooted at the filesystem you want to import. The project will be created right there and automatically include all sub-folders.
Alternatively, if the root directory is already an eclipse project, do this:
File -> Import -> Existing projects into workspace -> Select root directory
This is a bit confusing that you can't import a bunch of files and folders as a project, but this is how Eclipse has worked since the dawn of time (I think time started in the year 2000).

How do I import projects from another workspace?

I started with the default workspace C:\workspace but I mange to corrupt that by removing files so now I've created a new workspace to import the files to but I don't know how to do that. Could you tell me how I import projects from another workspace? I'm using the IBM RAD which is based on eclipse.
Thank you
Here are the steps for the original eclipse :
After switching eclipse to use the new workspace , go to File--> Import , and then choose General ---> Existing Projects into Workspace , and browse to the folder of the project that you want to import.
In Eclipse, the steps will be:
Select "File" tab
Select "Import" option in the drop down list.
Select "General" in the source listed.
Select "Archive File" if You have .zip/.rar file of the Project or "Existing Projects into Workspace" if You have Project in some other workspace.
Browse the Archive File or root directory location.
Select "Finish".
Now your project has been imported.
I am not very familiar with RAD but if its anything like Eclipse, the projects are stored by plugins. For ex: All my java related projects are stored under
workspace/.metadata/.plugins/org.eclipse.core.resources/.projects
while my other projects related to another project (Seamframework related) are stored under
workspace/.metadata/.plugins/org.jboss.tools.seam.core/projects
The best thing would be to search your
workspace/.metadata/.plugins
folder and see if you can identify all your projects. When you do, you can import them all into your new workspace as is.
To import the projects, once you locate them, follow the instructions posted by others here.
Good Luck!

How to open project from workspace in Eclipse?

I imported an Eclipse project into workspace and after some time I deleted it in Eclipse (from project explorer but not from workspace). Now, I want to reopen it, or import it again, but I cannot import it because such a project already exists in the workspace and when I try to open it, in tab Project -> Open Project, it is disabled. Of course, I can delete the project from workspace and import it again, but this is not what I want. So the question is: how can I open the project, which is in Eclipse's workspace, but has been deleted from the Eclipse's project explorer?
This is exactly what I just ran into. The 'Finish' button is greyed out, as is the check box and project name in the project window. If you try to check that check box the project will not be greyed now, but it won't check. Refresh does nothing.
The trick (or is it a bug) is to uncheck 'copy projects into workspace' hit the refresh button and it will now be checked and you can hit the finish button. Project will now once again be available in the Package Explorer.
(I'm using Eclipse 3.8 and ADT 21.0.1)
These Steps You Have to Follow
Click File menu
In file menu click Import
A window is open Now click General Folder
Now click Existing project into workspace
Then click the select from root directory
Now import project which you want......
You have to choose the project in the workspace, not the zip file with your project. Your project is still in your workspace, and because Eclipse wants to copy the project from the zip file you chose (look at the checked check box "Copy projects into workspace"), you get that warning.
Just select "Select root directory" and choose your workspace as your root directory and choose the project you want to reimport (and make sure, that the checkbox "Copy projects into workspace" is not checked).
Go to “%ECLIPSE_HOME%\configuration.settings” and delete the workspace listed at the key RECENT_WORKSPACES
Restart Eclipse, go to File>Switch Workspace>Other… and select your workspace dir again
Now I could create new projects as always
One simple trick is to delete the project from your work-space directory manually and than try to import project again. That's it...
I've experienced this same problem. It was a deleted workspace which I re-imported. When I tried to work with junit tests in the directory, it said that parts of if were not in the "project" In order to fix this, I had to check the "SEARCH FOR NESTED PROJECTS" and that corrected the issue.
I know that this is a really old question, possibly the solution was not available back then, but on my system (Eclipse Photon 4.8.0) it works like this:
File menu
Open Projects from File System...
Here you can give Eclipse a path to a directory (in this case your own, currently used workspace directory) where it will search for possible projects, list them and let you choose which one to import into the workspace. It will show already imported (aka. existing inside Eclipse) projects grayed out and unselectable, but has an option to hide these as well.
After selecting the project you'd like to import just click the Finish button and voila.
Make sure that your project is included in current workspace, then you have to see the project under "Project Explorer".
Note: you can view this from: Window->Show View->Project Explorer.
If you are facing this:
Some projects cannot be imported because they already exist in the workspace --> "Finish" button is grayed --> hence, no way to open the project(s)
Solution:
Go to File -> Open File...
Choose any one file of your project, and the entire project folder will open in your present workspace.