How to import an existing directory into Eclipse?

前端 未结 6 889
心在旅途
心在旅途 2020-12-04 07:36

I am on a mac, but I don\'t think it will make a difference. I have a directory that I want to fully import/add into Eclipse. What I did is this:

  1. Right click i
6条回答
  •  再見小時候
    2020-12-04 08:11

    There is no need to create a Java project and let unnecessary Java dependencies and libraries to cling into the project. The question is regarding importing an existing directory into eclipse

    Suppose the directory is present in C:/harley/mydir. What you have to do is the following:

    • Create a new project (Right click on Project explorer, select New -> Project; from the wizard list, select General -> Project and click next.)

    • Give to the project the same name of your target directory (in this case mydir)

    • Uncheck Use default location and give the exact location, for example C:/harley/mydir

    • Click on Finish

    You are done. I do it this way.

提交回复
热议问题