It’s very often that you have just downloaded or copied an Eclipse project into your computer and can’t wait to check it out with your pen friend Eclipse IDE. For example, you just downloaded an interesting Spring example project from Codejava.net and want to open it in Eclipse. However, you quickly notice that Eclipse doesn’t have something like File > Open Project. Even when you switched the workspace to the project’s directory, Eclipse still doesn’t recognize the project! Oh, what’s the heck? Well, that’s simply because you haven’t selected the right thing. In Eclipse, to open an existing project which is copied from another source, you need to use its Import function.

The Import function can be accessed in three ways:

    • The most convenient and quickest way: File > Import… (shortcut: Alt + F + I)Import from menu File

    • Or right click on any blank space in Package Explorer view, select Import… from the context menu:Import from Package Explorer view context menu

    • Or right click on any blank space in Project Explorer view, then select Import > Import… from the context menu:
Import from Project Explorer view context menu

Regardless of the way you took, Eclipse brings the Import wizard as follows:

Import wizard screen 1

Select Existing Projects into Workspace and click Next. The next screen Import projects appears:

Import wizard screen 2



Suppose you downloaded an Eclipse project bundled as a zip file, for example: EmailSpringMVC.zip, then select the radio option Select archive file, and click the Browse button to locate the zip file. Eclipse will inspect the zip file and show available projects in the list box. In this case, the project is EmailSpringMVC.

Click Finish, Eclipse will extract the archive and copy the files into current workspace, and finally show up the recently imported project in Project Explorer/Package Explorer view:

Project imported

NOTES:

    • In case you don’t have a project zip file, just a project’s directory, you have to select the radio option: Select root directoryand specify the project’s directory path:import project directory

    • The optionCopy projects into workspacemust be selected (and automatically by Eclipse) when importing projects from a zip archive. If importing from a directory, that option is optional.  

Other Eclipse Tutorials:


About the Author:

is certified Java programmer (SCJP and SCWCD). He started programming with Java in the time of Java 1.4 and has been falling in love with Java since then. Make friend with him on Facebook and watch his Java videos you YouTube.



Add comment

   


Comments 

#9Prathamesh pingale2023-08-01 09:58
This information is very helpfull
Quote
#8Balu prasanth k2023-07-24 11:03
It's very use full for me
Quote
#7Ipismita Rout2023-06-23 04:28
what timetaken in clone tabletor jepin
Quote
#6Kevin Joy Thomas2023-03-17 04:18
understood but is importing java programs from our desktop files or something else
Quote
#5Sneha Govind Gadhawe2023-03-12 11:47
Yes I know how to do that thank for your support
Quote