aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Importing an existing project into the workspace for the Eclipse IDE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Importing an existing project into the workspace for the Eclipse IDE" Watch "Importing an existing project into the workspace for the Eclipse IDE" New topic
Author

Importing an existing project into the workspace for the Eclipse IDE

John Paterson
Ranch Hand

Joined: Mar 12, 2012
Posts: 121
Hi Folks,

I have some issues with importing projects in Eclipse. What does Eclipse recognize as a project? I tried to import into Eclipse some projects I created in Netbeans, but I get a message in the 2nd import dialog box in Eclipse that says:"No projects are found to import". However if I were to import a project from an eclipse workspace itself, I am not getting such a message. Why is this happening? Hope somone can advise. The Eclipse in question is Eclipse Gallieo. Thanks

regards
John
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30299
    
150

Eclipse is looking for the .project file to recognize it as an Eclipse project. Possibly another file too, but not having .project is fatal. Missing other files may load with errors.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
John Paterson
Ranch Hand

Joined: Mar 12, 2012
Posts: 121
Hi Jeanne Boyarsky ,

Thanks for the reply, much appreciated. Does that mean it's not possible to open a netbeans project in Eclipse as a project created in netbeans does not have the '.project' file?
Is there any workaround?

regards
John
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30299
    
150

You still can; just not via the file system. If you export the project as a jar file or war file from NetBeans, you can then import that into Eclipse. Since you are dealing with a java artifact, both IDEs know how to deal with that. Whereas with the raw files, Eclipse doesn't know what to make of it.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

It's important to make a distinction between the project files and the "project" itself.

Eclipse won't automatically recognize any project. You have to either import it, or create it. You can create a project which uses existing files in a directory in the workspace (or for that matter, in some other place).

The .project (and .classpath files, for Java projects) are created for the benefit of Eclipse, but what's more important is that when you create a project using the New/Project command sequence, a collection of information is constructed in the workspace metadata directory. Without this invisible "black box" (huh?) data, the project isn't an Eclipse project and Eclipse won't see it as a workspace project.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Importing an existing project into the workspace for the Eclipse IDE